View Single Post
Old 10-10-2012, 08:58 PM   PM User | #79
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,658
Thanks: 45
Thanked 456 Times in 444 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by LearningCoder View Post
Ok it's logging in on localhost returning num_rows and affected_rows with 1 for both.
Ok, thats good..

Quote:
Originally Posted by LearningCoder View Post
On my live host, it is returning 0.
Bad..

Quote:
Originally Posted by LearningCoder View Post
Does this mean a difference in versions?
Possibly but why it would make a difference I've no idea.

Quote:
Originally Posted by LearningCoder View Post
Really at a hurdle which I can't get over. I've looked over and over the code now as you know for the last 3-4 days maybe even longer. Are there any good free debugging tools that you know of?
print(), var_dump(), print_r(), x_debug (may not be installed on your host), your brain or even me via a remote connection (remember though charges apply - £20 per hour, minimum of one hour with no fix no fee).

Also you could comment out the current code (reinstate it later) and run the query through mysql instead of mysqli and see what happens. This is your best next step from my POV as it allows you to determine if the data is being matched correctly or not.
__________________
Please don't be rude: Put your php code in [php][/php] tags. It is a sticky topic at the top of the forum and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote