Bug 430288
This commit is contained in:
@@ -7,6 +7,7 @@ $Source$
|
||||
|
||||
2001-06-05 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_properties, tbl_printview: quote Comment field
|
||||
* bug 430288: bad parsing of from | FROM
|
||||
|
||||
2001-06-04 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_change, tbl_replace: SaveAsNewRow
|
||||
|
2
sql.php3
2
sql.php3
@@ -71,7 +71,7 @@ else {
|
||||
// the same SELECT without LIMIT
|
||||
if(eregi("^SELECT", $sql_query))
|
||||
{
|
||||
$array=split('from|FROM',$sql_query,2); //read only the from-part of the query
|
||||
$array=split(' from | FROM ',$sql_query,2); //read only the from-part of the query
|
||||
$count_query="select count(*) as count from $array[1]"; //and make a count(*) to count the entries
|
||||
$OPresult = mysql_query($count_query);
|
||||
$SelectNumRows = mysql_result($OPresult,'0','count');
|
||||
|
Reference in New Issue
Block a user