bug 433388
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2001-06-15 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* bug 433388, patch from Alain Brissaud (hal0802)
|
||||||
|
|
||||||
2001-06-14 Steve Alberty <alberty@neptunlabs.de>
|
2001-06-14 Steve Alberty <alberty@neptunlabs.de>
|
||||||
* add support for locked tables (default=off)
|
* add support for locked tables (default=off)
|
||||||
* add summary on db_details.php3
|
* add summary on db_details.php3
|
||||||
|
2
sql.php3
2
sql.php3
@@ -74,8 +74,10 @@ else {
|
|||||||
$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
|
$count_query="select count(*) as count from $array[1]"; //and make a count(*) to count the entries
|
||||||
$OPresult = mysql_query($count_query);
|
$OPresult = mysql_query($count_query);
|
||||||
|
if ($OPresult) {
|
||||||
$SelectNumRows = mysql_result($OPresult,'0','count');
|
$SelectNumRows = mysql_result($OPresult,'0','count');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!$result)
|
if(!$result)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user