my problem is that I want to check in my database that if i have at least one entry in the specific table I want to disable an image.
I think that I can have something like that...
<?php
if($query = mysql_query("SELECT name,email,city,phone FROM personal_information WHERE username='$username'"))
{
if(mysql_num_rows($query)=0)
{
<a href="cv/addcv.php"><img src="images/addcv.png" style="display: none;"> </a>
}
else
{
<a href="cv/addcv.php"><img src="images/addcv.png" style="width:120px;height:120px"> </a>
}
}
?>
But it does not work... Can you suggest me any solution