A little problem with a script

Thread Solved

Join Date: Jan 2008
Posts: 23
Reputation: tedobg is an unknown quantity at this point 
Solved Threads: 0
tedobg tedobg is offline Offline
Newbie Poster

Re: A little problem with a script

 
0
  #11
Mar 10th, 2008
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...
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: A little problem with a script

 
0
  #12
Mar 11th, 2008
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.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 2
Reputation: nonchalant is an unknown quantity at this point 
Solved Threads: 1
nonchalant nonchalant is offline Offline
Newbie Poster

Re: A little problem with a script

 
0
  #13
Mar 11th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: A little problem with a script

 
0
  #14
Mar 11th, 2008
Originally Posted by nonchalant View Post
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.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 38
Reputation: LeBurt is an unknown quantity at this point 
Solved Threads: 1
LeBurt LeBurt is offline Offline
Light Poster

Re: A little problem with a script

 
0
  #15
Mar 11th, 2008
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");
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 23
Reputation: tedobg is an unknown quantity at this point 
Solved Threads: 0
tedobg tedobg is offline Offline
Newbie Poster

Re: A little problem with a script

 
0
  #16
Mar 11th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: A little problem with a script

 
0
  #17
Mar 11th, 2008
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 !
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 38
Reputation: LeBurt is an unknown quantity at this point 
Solved Threads: 1
LeBurt LeBurt is offline Offline
Light Poster

Re: A little problem with a script

 
0
  #18
Mar 11th, 2008
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)
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 23
Reputation: tedobg is an unknown quantity at this point 
Solved Threads: 0
tedobg tedobg is offline Offline
Newbie Poster

Re: A little problem with a script

 
0
  #19
Mar 11th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,760
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: A little problem with a script

 
0
  #20
Mar 11th, 2008
Thats strange. Put the connection string as 1st line of your code. Is it entering all the other conditions ?
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC