CircularStopSign Posted August 22, 2006 Share Posted August 22, 2006 what does this mean, i was working with the Membership System code from PHPfreaks.com and i took out the username so i can just use the email address to login. When you enter your information to signup, this comes up after...?thanks, pat Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/ Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 Some code would be nice. Thanks. Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78787 Share on other sites More sharing options...
CircularStopSign Posted August 22, 2006 Author Share Posted August 22, 2006 sure, what would you like the code for? i didn tknow if it was a general problem or not.. sorry Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78790 Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 The code for the mysql query would be a good start :) Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78792 Share on other sites More sharing options...
HeyRay2 Posted August 22, 2006 Share Posted August 22, 2006 The error you received is telling you that your database query is looking for a field called [b]username[/b], but it does not exist in the database.If you removed the [b]username[/b] field from the database, then you need to remove any references to it in your queries.A snippet of the query code and a description of your database tables would be a good start to figuring out your issue... ;) Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78793 Share on other sites More sharing options...
CircularStopSign Posted August 22, 2006 Author Share Posted August 22, 2006 yeah i saw that in another post, i forgot to take out the 'username' under the check for existing user...now i am getting this errorParse error: parse error in /home/www/patall8.100webspace.net/register.php on line 54 Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78799 Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 parse errors are kind of vague. Copy that line and the code around it (about 3 lines up and 3 lines down) and we can help you :). Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78801 Share on other sites More sharing options...
CircularStopSign Posted August 22, 2006 Author Share Posted August 22, 2006 oh yeah haha sorry.. i meant to line 54 being "include 'join_form.." $email_check = mysql_num_rows($sql_email_check); if($email_check > 0){ echo "<strong>Your email address has already been used by another member in our database. Please use a different Email address!<br />"; unset($email_address); } include 'join_form.html'; exit(); } Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78805 Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 Hmm... the format of the code here is throwing me off. Does it have a carriage return after:[code]echo "<strong>Your email address has already been used by another member in our database. Please use a different Email address![/code]If so then that's your problem :); Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78807 Share on other sites More sharing options...
CircularStopSign Posted August 22, 2006 Author Share Posted August 22, 2006 whats a carriage return? Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78809 Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 Does the [code]";[/code] part of the code start on a newline from [code]echo "<strong>Your email address has already been used by another member in our database. Please use a different Email address![/code] Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78814 Share on other sites More sharing options...
HeyRay2 Posted August 22, 2006 Share Posted August 22, 2006 A carriage return is creating a new line with the "Return" or "Enter" key. If you have a carriage return at the end of a line of code before the line terminator ( [b];[/b] ), it could cause a parse error like the one you are seeing.Make sure those lines of code look like this:[code]$email_check = mysql_num_rows($sql_email_check); if($email_check > 0){ echo "<strong>Your email address has already been used by another member in our database. Please use a different Email address!"; unset($email_address); } include 'join_form.html'; exit();}[/code] Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78816 Share on other sites More sharing options...
CircularStopSign Posted August 22, 2006 Author Share Posted August 22, 2006 yeah, that is how it looks in my code... Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78822 Share on other sites More sharing options...
CircularStopSign Posted August 22, 2006 Author Share Posted August 22, 2006 i took out the first '}' because it looks unneaded? ami right? Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78829 Share on other sites More sharing options...
HeyRay2 Posted August 22, 2006 Share Posted August 22, 2006 If you are intending to include [b]join_form.html[/b] when a duplicate email address is detected, then you are correct in removing that first [b]}[/b].Otherwise, the [b]}[/b] at the end of the code you posted would need to be removed if it did not have an accompanying [b]{[/b] higher up in your code, such as the start of an [b]if()[/b] statement. Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78839 Share on other sites More sharing options...
trq Posted August 22, 2006 Share Posted August 22, 2006 [quote]i took out the first '}' because it looks unneaded? ami right?[/quote]No, but you dont have a matching { to go with your last }. You'll need to post a little more code ( a few lines above what you have). Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78841 Share on other sites More sharing options...
CircularStopSign Posted August 22, 2006 Author Share Posted August 22, 2006 alright, thank you guys... now i just have to get rid of all the things i didnt want :) Link to comment https://forums.phpfreaks.com/topic/18337-unknown-column-username-in-field-list/#findComment-78847 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.