2013-03-13, 20:43:46
Check if there are any Results
PHP Code:
require 'plugin/config.php';
$query = "SELECT * from " . $db_database . "." . $db_table . "_category";
$result = mysqli_query($db, $query);
// Are there any results?
echo "Count mysqli_num_rows:".mysqli_num_rows($result);
if (mysqli_num_rows($result)>0) {
while ($row = mysqli_fetch_assoc($result)) {
echo '<pre>';
print_r($row);
}
}