Ver original$result = mysql_query( $query );
Ver original$result = mysql_query( $query ) or die(mysql_error());