This warning means that $imageresultvar does not have a string. Check this out, this should work:
$imageresult = mysql_query("SELECT name FROM imagetable WHERE id = '$id'") or die(mysql_error());
if (mysql_num_rows($imageresult) > 0) {
$u = mysql_result($imageresult, 0 ,"name") or die(mysql_error());
if (isset($id) && (!isset($u))) {
}
}
source
share