This is a discussion on "[SOLVED] Parse error-Need Help!" within the PHP Forum section. This forum, and the thread "[SOLVED] Parse error-Need Help! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Parse error-Need Help!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Parse error-Need Help!
Hi fellows!
I am using a form in my update profile page and getting an error like-- Parse error: syntax error, unexpected '<' in /home/dbanglad/public_html/111/1profile.php on line 8 with the following code
|
|
|
|
||||
|
Re: Parse error-Need Help!
You need to close your PHP tags
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Parse error-Need Help!
Thanks for your reply. I did close the php at the end of the form. I had to do that because I use input value as 'row->Last_Name' (for example) to retrieve data from my MySql table. If I close it before the form it does not show the data that I am retrieving in to the form.
|
|
||||
|
Re: Parse error-Need Help!
Do this then
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Parse error-Need Help!
Hi dhossai,
I think alexgeek just missed one PHP variable in the HTML form. The correct version should look like this
See how, in the last line, the echo command is used to generate HTML. This is how HTML is generated when inside the <?php ?> tags. Btw also note that I've replaced the single quotes around the value field with double quotes. |
|
||||
|
Re: Parse error-Need Help!
I kinda already posted that mate.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Parse error-Need Help!
Thanks guys. It works. Alex made mistake by putting ";" at the end which was
Thanks to all again. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. | VegaLA | Classic ASP | 3 | Jan 26th, 2008 00:12 |
| [SOLVED] parse error, unexpected T_EXIT in php mail script | Posie | PHP Forum | 8 | Dec 13th, 2007 14:21 |
| [SOLVED] SQL Error [mysql4] | Daniel | Databases | 3 | Sep 23rd, 2007 15:29 |
| What is a Parse Error? | rubyfruit | Starting Out | 1 | Jul 5th, 2007 20:40 |
| Parse Error | Maverick25r | PHP Forum | 4 | Sep 15th, 2006 16:55 |