hey this is how I must have made such that if the database can not find anything that matches the database or can find anything then it should come forward and say something, but I’m totally resolve around how to build it at. I will hear about in could help me
I try to do this:
<?php
if ($stmt = $mysqli->prepare('SELECT id_forum, title, tekst, dato, id_brugere FROM `forum` ORDER BY `forum`.`id` DESC'))
{
$stmt->execute();
$stmt->bind_result($id, $djnavn, $profilbillede);
$rows = $stmt->num_rows;
echo $rows;
while ($stmt->fetch())
{
?>
<td class="titleforum"></td>
<td>Dato:</td>
<?php
}
$stmt->close();
}
else
$row_cnt = $result->num_rows;
print_r($row_cnt);
?>
but it does not appear anything anything at all talk or look like .. what I want out of this is that it says something?
Try:
See: http://php.net/manual/en/mysqli-stmt.num-rows.php