Page 2 of 2

Posted: Sun Apr 03, 2005 5:58 am
by anthony88guy
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.

Posted: Sun Apr 03, 2005 2:14 pm
by feyd
  1. line 32 has logic errors still.
  2. line 34, 'NULL' should be without quotes.
  3. 'check2' should display as well as 'check1' for both code paths.
  4. line 27 doesn't affect the insertion code.

Posted: Sun Apr 03, 2005 10:05 pm
by anthony88guy
What logical errors does line 32 (30 here) have?

Posted: Sun Apr 03, 2005 10:12 pm
by feyd
anthony88guy wrote:What logical errors does line 32 (30 here) have?
reread all previous posts in this thread.

Posted: Sun Apr 03, 2005 10:21 pm
by anthony88guy
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?

Posted: Sun Apr 03, 2005 10:24 pm
by feyd
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?

:|

Posted: Sun Apr 03, 2005 10:29 pm
by anthony88guy
Still not working, and echos "check1"

Posted: Sun Apr 03, 2005 10:36 pm
by feyd
try removing the 'or die' from mysql_num_rows().

Posted: Sun Apr 03, 2005 10:43 pm
by infolock
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 ;)

Posted: Mon Apr 04, 2005 2:03 pm
by anthony88guy
feyd wrote:try removing the 'or die' from mysql_num_rows().
Yep, that was the problem, thanks so much.