<? $consulta = "AQUI TU CONSULTA MySQL"; mysql_query($consulta) or die("Consulta: $consulta<p>Error:".mysql_error()); ?>