Portal Home > Knowledgebase > Articles Database > PHP Script Problem
PHP Script Problem
Posted by Edrick Smith, 11-22-2008, 08:49 AM |
PHP Script Problem
Hey,
I'm helping a friend out with a script she's working on however for whatever reason this page will not load alls it does is show a blank white page. http://cl1p.net/8am
There's the code do you see any issues that pop out?
__________________â¢â¢â¢ Ricky Smith â¢â¢â¢
â¢â¢â¢ Plex Networks ⢠Founder â¢â¢â¢
â¢â¢â¢ FullSail Film Student â¢â¢â¢
|
Posted by Steve_Arm, 11-22-2008, 09:49 AM |
first one:
mysql_connect(localhost,$username,$password);
should be
mysql_connect($localhost,$username,$password);
__________________
PHP Code Repository | I speak code
|
Posted by Edrick Smith, 11-22-2008, 09:56 AM |
Thankyou!
Is that the only problem you could find with the code? As far as what I was just told, although that is an error it's still working correctly written that way or will that cause such an error?
__________________â¢â¢â¢ Ricky Smith â¢â¢â¢
â¢â¢â¢ Plex Networks ⢠Founder â¢â¢â¢
â¢â¢â¢ FullSail Film Student â¢â¢â¢
|
Posted by Steve_Arm, 11-22-2008, 09:56 AM |
PHP Code:
|
Posted by Edrick Smith, 11-22-2008, 10:02 AM |
Thanks again
Just wondering where the form and other coding went is it not needed or?
__________________â¢â¢â¢ Ricky Smith â¢â¢â¢
â¢â¢â¢ Plex Networks ⢠Founder â¢â¢â¢
â¢â¢â¢ FullSail Film Student â¢â¢â¢
|
Posted by Steve_Arm, 11-22-2008, 10:32 AM |
Anything missing should go as is.
__________________
PHP Code Repository | I speak code
|
Posted by Edrick Smith, 11-22-2008, 10:58 AM |
Updating -
They said that they believe the issue is with the "form" in the lower part of the code as the main code they have works fine on the other pages.
__________________â¢â¢â¢ Ricky Smith â¢â¢â¢
â¢â¢â¢ Plex Networks ⢠Founder â¢â¢â¢
â¢â¢â¢ FullSail Film Student â¢â¢â¢
|
Posted by Edrick Smith, 11-22-2008, 11:35 AM |
Notice: Undefined variable: localhost in /home/vhosts/planez.orgfree.com/status.php on line 9
Notice: Undefined variable: sql in /home/vhosts/planez.orgfree.com/status.php on line 29
Error. Could not do SQL query!
That's what we're getting after the suggested changes
Updated Code :http://cl1p.net/1030am
__________________â¢â¢â¢ Ricky Smith â¢â¢â¢
â¢â¢â¢ Plex Networks ⢠Founder â¢â¢â¢
â¢â¢â¢ FullSail Film Student â¢â¢â¢
|
Posted by Steve_Arm, 11-22-2008, 12:15 PM |
I see. It needed quotes, mistaken.mysql_connect("localhost",$username,$password);
__________________
PHP Code Repository | I speak code
|
Add to Favourites Print this Article
Also Read