here's a part of my code.
if(isset($_GET['processit'])) {
if($_GET['processit']=='validation') {
$validcode = $_GET['acode'];
//get all the data.
$validquery = mysql_query("sleect * from tempuserinfo where activation_code ='$validcode'", $db);
//put into row
$rowxx = mysql_fetch_assoc($validquery);
$user_firstname = $rowxx['user_firstname'];
$user_middlename = $rowxx['user_middlename'];
$user_lastname = $rowxx['user_lastname'];
echo $user_firstname;
echo $user_middlename;
}
}
?>
And on my table it only has one row. But im having the Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/u778649338/public_html/reservation/reservationkitchen.php on line 381
error. I wonder what is wrong?
thanks in advance.