I am posting this in order to see if someone could help me to solve this little problem. Right now I have this code:
visible $sqlUpdate = "UPDATE user.user SET level='1' WHERE id='".$_GET['char']."' AND level >249 AND power>0 LIMIT 1";
What I want to do is that if the query actually runs, print Correct, otherwise, Error.
What I tried:
visible       $sqlUpdate = "UPDATE user.user SET level='1' WHERE id='".$_GET['char']."' AND level >249 AND power>0 LIMIT 1";
              $updatePos = mysql_query($sqlUpdate);
              if($sqlUpdate==1) {
              }
              else { echo'<p class="as">Correct.</p>'; }
            }
            else {
              echo'<p class="as">Error .</p>';
            }
But that does not work.
 
     
     
     
     
     
     
     
    