Código:
$SQL = "SELECT * FROM tabla WHERE campo = $variable" /// solo al inicio . . . $variable = 1; MYSQL_QUERY($SQL, $CON) $variable = 2; MYSQL_QUERY($SQL, $CON)