Answer the question
In order to leave comments, you need to log in
How to display the number of found materials?
How to display the number of found materials on the site? I use num_rows but it only displays how many on one page and not the number of all found materials. what do you advise?
Answer the question
In order to leave comments, you need to log in
<?php
$Query = mysqli_query($CONNECT, "SELECT `id`, `title`, `himg`, `readed` FROM `news` WHERE `content` LIKE '%{$keywords}%' OR `title` LIKE '%{$keywords}%');
?>
найдено <?php echo $Query->num_rows; ?>
$r = mysql_query( "SELECT count(*) FROM ...." );
$count = mysql_result( $r, 0, 0 );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question