Jump to content

No results displaying -


wright67uk

Recommended Posts

Hello,

 

Im trying to display some results from mysql database, however none display.

Can anyone tell me where im going wrong please?

 

  
</head><body>
<div id="listhold">
<div class="list">
<a href="Restaurants.html">Restaurants</a><br />

<?php
mysql_connect("","",""); 
mysql_select_db("") or die("Unable to select database"); 
$result = mysql_query("SELECT name FROM business WHERE type ='restaurant' ORDER BY name");
$number_of_results = mysql_num_rows($result);
$results_counter = 0;
if ($number_of_results != 0) 
{while ($array = mysql_fetch_array($result))
$results_counter++;
if ($results_counter >= $number_of_results);}
?>
</div>

Link to comment
https://forums.phpfreaks.com/topic/233135-no-results-displaying/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.