jungleme0w Posted January 16, 2007 Share Posted January 16, 2007 Parse error: parse error, unexpected T_STRING in /home/www/mydomain.com/register.php on line 51where line 51=VALUES ('".$_POST['username']."', '".$_POST['pass']."')";help please!? Link to comment https://forums.phpfreaks.com/topic/34380-help-with-a-php-mysql-password/ Share on other sites More sharing options...
JJohnsenDK Posted January 16, 2007 Share Posted January 16, 2007 I think the error might be in line 50. Could you post more of the code? Link to comment https://forums.phpfreaks.com/topic/34380-help-with-a-php-mysql-password/#findComment-161817 Share on other sites More sharing options...
jungleme0w Posted January 16, 2007 Author Share Posted January 16, 2007 http://junglecat.freehostia.com/uploads/register.txtthe whole php. Link to comment https://forums.phpfreaks.com/topic/34380-help-with-a-php-mysql-password/#findComment-161829 Share on other sites More sharing options...
papaface Posted January 16, 2007 Share Posted January 16, 2007 No the error is right there:[code]VALUES ('".$_POST['username']."', '".$_POST['pass']."')";[/code]should be:[code]VALUES ('".$_POST['username']."', '".$_POST['pass']."');[/code] Link to comment https://forums.phpfreaks.com/topic/34380-help-with-a-php-mysql-password/#findComment-161831 Share on other sites More sharing options...
papaface Posted January 16, 2007 Share Posted January 16, 2007 oops okay I didnt see the SQL above, i thought it was a comment. Ill take another lookWhy has modify post been taken off?! Link to comment https://forums.phpfreaks.com/topic/34380-help-with-a-php-mysql-password/#findComment-161832 Share on other sites More sharing options...
papaface Posted January 16, 2007 Share Posted January 16, 2007 Oh well, I said it. your SQL is commented out:should be:[code]// now we insert it into the database $insert = "INSERT INTO users (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')";[/code] Link to comment https://forums.phpfreaks.com/topic/34380-help-with-a-php-mysql-password/#findComment-161833 Share on other sites More sharing options...
jungleme0w Posted January 16, 2007 Author Share Posted January 16, 2007 oh so i had to put a bit onto the line... thats stupidw00t it works now!thanks a lot guys! Link to comment https://forums.phpfreaks.com/topic/34380-help-with-a-php-mysql-password/#findComment-161840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.