mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +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) {
|
if (!$result) {
|
||||||
echo "<p class='error'>" . lang('Error in query') . ": $error</p>\n";
|
echo "<p class='error'>" . lang('Error in query') . ": $error</p>\n";
|
||||||
} else {
|
} 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";
|
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
|
||||||
for ($i=0; $row = mysql_fetch_assoc($result); $i++) {
|
for ($i=0; $row = mysql_fetch_assoc($result); $i++) {
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
@@ -28,6 +30,7 @@ if ($_POST) {
|
|||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
}
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user