[SOLVED] When accessing database returns blank page

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 »

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

Post by anthony88guy »

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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 »

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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?

:|
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

Post by anthony88guy »

Still not working, and echos "check1"
Last edited by anthony88guy on Thu May 12, 2005 6:06 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

try removing the 'or die' from mysql_num_rows().
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post 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 ;)
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

Post by anthony88guy »

feyd wrote:try removing the 'or die' from mysql_num_rows().
Yep, that was the problem, thanks so much.
Post Reply