Jump to content

why browser never show error


angelsRock

Recommended Posts

It's because it is a MySQL error, so your not going to get a line number. That is why it is useful to do something like this when performing queries.

 

<?php

$query = "SELECT * FROM table";
$result = mysql_query($query)or die("Error:".mysql_error(). "With query" . $query);

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.