I want to count the result which coming from query and display it for users the $queryrun variable holds the query run and mentioned below of my code in my page but I receive this massage:
Your Query Found Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\ss.com\spd\index.php on line 145 Properties in Your Selected Location please here is the code:
<?php
mysql_connect('localhost', 'root', '') or die(mysql_error());
mysql_select_db('test') or die(mysql_error());
$count=mysql_query('SELECT COUNT($queryrun) FROM properties');
?>
<div>Your Query Found <strong><?php echo $Result=mysql_result($count, 0)?></strong>
Properties in Your Selected Location</div><br>