added some mysql_die() calls

This commit is contained in:
Loïc Chapeaux
2001-08-20 16:57:29 +00:00
parent 9fc66f3eae
commit 0ec91a1692

View File

@@ -23,12 +23,12 @@ if (get_magic_quotes_gpc()) {
mysql_select_db($db);
$table_def = mysql_query('SHOW FIELDS FROM ' . backquote($table));
if (isset($primary_key)) {
$result = mysql_query('SELECT * FROM ' . backquote($table) . ' WHERE ' . $primary_key);
$result = mysql_query('SELECT * FROM ' . backquote($table) . ' WHERE ' . $primary_key) or mysql_die();
$row = mysql_fetch_array($result);
}
else
{
$result = mysql_query('SELECT * FROM ' . backquote($table) . ' LIMIT 1');
$result = mysql_query('SELECT * FROM ' . backquote($table) . ' LIMIT 1') or mysql_die();
}