title: Create a hidden image when I check if I have an entry in my database
body: <p>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.</p>
  
  <p>I think that I can have something like that...</p>
  
  <pre><code>&lt;?php
      if($query = mysql_query("SELECT name,email,city,phone FROM personal_information WHERE username='$username'"))
      {
          if(mysql_num_rows($query)=0)
          {
              &lt;a href="cv/addcv.php"&gt;&lt;img src="images/addcv.png" style="display: none;"&gt; &lt;/a&gt;
          }
          else
          {
               &lt;a href="cv/addcv.php"&gt;&lt;img src="images/addcv.png" style="width:120px;height:120px"&gt; &lt;/a&gt;
          }
      }
  ?&gt;
  </code></pre>
  
  <p>But it does not work...
  Can you suggest me any solution</p>