943,740 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 3212
  • PHP RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Mar 10th, 2008
0

Re: A little problem with a script

Ok guys I am back. nav33n thanks for this man, but unfortunatelly It still doesnt work.The blank page remains and I am am getting no error messages at all. Something stops the scripts from executing but I have no idea what...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tedobg is offline Offline
23 posts
since Jan 2008
Mar 11th, 2008
0

Re: A little problem with a script

Umm.. echo statements to check the flow of the code. Check if its entering the loops correctly. Check the form variable names. Put print_r($_POST); on top of the page to see if all the form variables are posted properly.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Mar 11th, 2008
0

Re: A little problem with a script

hie

my fujitsu siemens amilo pro v3515 laptop with vista home basic has been displaying windows resuming when i switch it on ..been going on for 2 days...cannot get any of the keys to do anything...can anyone help?????.. thanx
Reputation Points: 10
Solved Threads: 1
Newbie Poster
nonchalant is offline Offline
2 posts
since Mar 2008
Mar 11th, 2008
0

Re: A little problem with a script

Click to Expand / Collapse  Quote originally posted by nonchalant ...
hie

my fujitsu siemens amilo pro v3515 laptop with vista home basic has been displaying windows resuming when i switch it on ..been going on for 2 days...cannot get any of the keys to do anything...can anyone help?????.. thanx
You need to post this question in hardware forum.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Mar 11th, 2008
0

Re: A little problem with a script

Since it's the only place left with no error detection, how about trying:

if (!mysql_select_db("users", $con))
die ("Database 'users' not found");
Reputation Points: 10
Solved Threads: 1
Light Poster
LeBurt is offline Offline
38 posts
since Mar 2008
Mar 11th, 2008
0

Re: A little problem with a script

Ok thanks to all your effort guys we have an improvement.I tried what nav33n said and I put echo statements everywhere. The flow of the code stops right after $con=mysql_connect('localhost','root','password'); . Ok so far so good. What now? Where might be the problem?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tedobg is offline Offline
23 posts
since Jan 2008
Mar 11th, 2008
0

Re: A little problem with a script

hmm! instead of $con=mysql_connect('localhost','root','password'); give
$con=mysql_connect('localhost','root','password') or die(mysql_error()); I dont think establishing the connection is the problem. If that was the problem, you would have got an error message while executing the script. Anyway, change the connection string line as above and try again !
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Mar 11th, 2008
0

Re: A little problem with a script

Try opening a command window and check if you can connect with the root user and 'password' as a password:

> mysql -u root -p
Enter password: password

(make sure the mysql command is in your path or else navigate where it is)
Reputation Points: 10
Solved Threads: 1
Light Poster
LeBurt is offline Offline
38 posts
since Mar 2008
Mar 11th, 2008
0

Re: A little problem with a script

nav33n mate I tried with the die statement and there is no error but the code still stops after the attempt to connect. And LeBurt there is no problem connecting to mysql the way you said.
I have double checked everything I input but it still doesn't work.What could be the problem?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tedobg is offline Offline
23 posts
since Jan 2008
Mar 11th, 2008
0

Re: A little problem with a script

Thats strange. Put the connection string as 1st line of your code. Is it entering all the other conditions ?
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP sort control
Next Thread in PHP Forum Timeline: Ajax Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC