I need a little bit of your help with if statements in PHP , as I am new to it
First of all I have this query:
$sqlCmd = "SELECT user.name,user.level
FROM user.user
WHERE user.id = '".$_GET['char']."'
LIMIT 1";
and now I have this second query
visible $sqlUpdate = "UPDATE user.user
SET level='1'
WHERE id='".$_GET['char']."'
LIMIT 1";
What I want to do is something like this : if level>1
run the $sqlUpdate
, else print an error .