From 71abf953184faf62cceec3cc53245c3b27cc208c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 28 May 2001 19:21:57 +0000 Subject: [PATCH] small glitch --- sql.php3 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql.php3 b/sql.php3 index e62c270ba..bd8c5ae6c 100755 --- a/sql.php3 +++ b/sql.php3 @@ -66,6 +66,7 @@ else { if(isset($sessionMaxRows)) $cfgMaxRows = $sessionMaxRows; $sql_limit = (isset($pos) && eregi("^SELECT", $sql_query) && !eregi("LIMIT[ 0-9,]+$", $sql_query)) ? " LIMIT $pos, $cfgMaxRows" : ''; + mysql_select_db($db); $result = mysql_query($sql_query.$sql_order.$sql_limit); // the same SELECT without LIMIT if(eregi("^SELECT", $sql_query)) @@ -78,6 +79,7 @@ else { if(!$result) { + echo "t12"; $error = mysql_error(); include("./header.inc.php3"); mysql_die($error);