|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I was reading the tutorial on
Building A Persistent Shopping Cart With PHP and MySQL i'm having a problem with products.php it looks like this: PHP Code:
and when i view in on the server i get : Parse error: parse error in products.php on line 54 line 54 is the last line ( </html>) but when i remove it, i keep getting it (line 54 is beeing replaced bij the number of last line) i realy dont understand what the problem of the script is. please help me ! |
|
#2
|
|||
|
|||
|
This is because you have opened with while function but not closed it
for the last lines you need something like this: </font> </td> </tr> <?php } ?> </table> </body> </html> that will stop the error |
|
#3
|
|||
|
|||
|
Don't forget to close out loops
You forgot to close-out your while-statement loop with a "}".
while (bla bla) { // loop thru code here } // <--MAKE SURE YOU HAVE THIS AT THE END OF YOUR WHILE STATEMENT Note: Most of the time you get that message, is because of this reason. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Problem with shopping cart |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|