From 0ec91a1692d9b7e8cbbfcc25c31dbede72dcd4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Mon, 20 Aug 2001 16:57:29 +0000 Subject: [PATCH] added some mysql_die() calls --- tbl_change.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tbl_change.php3 b/tbl_change.php3 index 55bba973a..12c199af6 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -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(); }