Hi, I'm hanafiah
I having some problem with mysql. I'm using php and mysql. What problem now is I try to retrive some data from mysql, if the data is there (in mysql) I not having any problem but if the data not exist, so it return an error: Unable to jump to row 0 on MySQL result index 2:
can anybody help me on this, I know my code are wrong, can any body give suggestion on how to solve this problem, below example of my code for your review:
$searching = "select user from user where host='$hostname' and user='$username' and password=password('$password')";
$query = mysql_query($searching,$db);
$validuser = mysql_result($query,""); // error will occur when execute this line and no such data in mysql