Hi,
I want to display a button that depends on my query result. But my PHP scripts look like didn't understand what I wanted to do (smile).
I want to display a button that depends on my query result. But my PHP scripts look like didn't understand what I wanted to do (smile).
Code:
#check if the file is already exist
$query3 = "SELECT * FROM cmr_reviewers
WHERE FileID = {$id}
AND reviewer_name = '$user_name'
AND reviewed='Y'";
$result3 = mysql_query($query3);
if($result3==1)
{
echo"image 1";
}
else
{
echo "image2";
}
Comment