When I do something like this:
$query = mysql_query("INSERT INTO something (something) VALUES('".$something."')");
if($query){
//do stuff
}
or
$mailstuff = mail($to,$subject,$message,$headers);
if($mailstuff){
//do stuff
}
Which part of the code actually executes the function? The if or the declaration? References appreciated.
Thanks