PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello, I need some help with this script.
Heres the error:
[quote]
Parse error: syntax error, unexpected $end in C:\Program Files\xampp\htdocs\profile.php on line 51
[/quote]
Heres the script:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Duh, I cant believe I did that.
I got another problem.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Omsis wrote:if u use mysql_fetch_array() then the array $row must be used as $row[1]
or use mysql_fetch_assoc() and then use $row['name'] !
Actually, with mysql_fetch_array, result fields will be available as both $row[1] and $row['name']. mysql_fetch_row will only make numeric keys available in the array ($row[1]), and mysql_fetch_assoc will only make the field names available as keys ($row['name').