$sql="Select * from mitabla where imcampo=$mivariable;
$sql="Select * from mitabla where imcampo='$mivariable'";