mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
No rows
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@9 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -15,7 +15,9 @@ if ($_POST) {
|
||||
if (!$result) {
|
||||
echo "<p class='error'>" . lang('Error in query') . ": $error</p>\n";
|
||||
} else {
|
||||
//! no rows
|
||||
if (!mysql_num_rows($result)) {
|
||||
echo "<p class='message'>" . lang('No rows.') . "</p>\n";
|
||||
} else {
|
||||
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
|
||||
for ($i=0; $row = mysql_fetch_assoc($result); $i++) {
|
||||
if (!$i) {
|
||||
@@ -28,6 +30,7 @@ if ($_POST) {
|
||||
echo "</tr>\n";
|
||||
}
|
||||
echo "</table>\n";
|
||||
}
|
||||
mysql_free_result($result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user