added some mysql_die() calls
This commit is contained in:
@@ -23,12 +23,12 @@ if (get_magic_quotes_gpc()) {
|
|||||||
mysql_select_db($db);
|
mysql_select_db($db);
|
||||||
$table_def = mysql_query('SHOW FIELDS FROM ' . backquote($table));
|
$table_def = mysql_query('SHOW FIELDS FROM ' . backquote($table));
|
||||||
if (isset($primary_key)) {
|
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);
|
$row = mysql_fetch_array($result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$result = mysql_query('SELECT * FROM ' . backquote($table) . ' LIMIT 1');
|
$result = mysql_query('SELECT * FROM ' . backquote($table) . ' LIMIT 1') or mysql_die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user