Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Sun Apr 03, 2005 5:58 am
I am still getting sent to a blank page when try and register a username. But if the username it already registered it tells me to pick another username. I have add some checks in the script. It only echos check 1.
Last edited by
anthony88guy on Thu May 12, 2005 5:50 pm, edited 1 time in total.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Apr 03, 2005 2:14 pm
line 32 has logic errors still .
line 34, 'NULL' should be without quotes.
'check2' should display as well as 'check1' for both code paths.
line 27 doesn't affect the insertion code.
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Sun Apr 03, 2005 10:05 pm
What logical errors does line 32 (30 here) have?
Last edited by
anthony88guy on Thu May 12, 2005 5:51 pm, edited 1 time in total.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Apr 03, 2005 10:12 pm
anthony88guy wrote: What logical errors does line 32 (30 here) have?
reread all previous posts in this thread.
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Sun Apr 03, 2005 10:21 pm
Sorry about that, Now with my new code it does the samething. And only echo's "check1" I really dont know whats up with. Could it be server related?
Last edited by
anthony88guy on Thu May 12, 2005 5:51 pm, edited 1 time in total.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Apr 03, 2005 10:24 pm
you still have logic errors on that line.
Did you even notice the && in the previous posts that infolock kindly posted, and I've talked about for I have no idea how many posts now?
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Sun Apr 03, 2005 10:29 pm
Still not working, and echos "check1"
Last edited by
anthony88guy on Thu May 12, 2005 6:06 pm, edited 1 time in total.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Apr 03, 2005 10:36 pm
try removing the 'or die' from mysql_num_rows().
infolock
DevNet Resident
Posts: 1708 Joined: Wed Sep 25, 2002 7:47 pm
Post
by infolock » Sun Apr 03, 2005 10:43 pm
feyd wrote: try removing the 'or die' from mysql_num_rows().
willing to bet my last quarter that works. i ran into that issue once upon a time and almost pulled my head bald before finally trying that
anthony88guy
Forum Contributor
Posts: 246 Joined: Thu Jan 20, 2005 8:22 pm
Post
by anthony88guy » Mon Apr 04, 2005 2:03 pm
feyd wrote: try removing the 'or die' from mysql_num_rows().
Yep, that was the problem, thanks so much.