This is my code for getting the mysql table content
I am getting whole data at once.
I want to put a time delay in each of the query.
$host= "localhost";
$user= "xxxxx";
$pass= "xxxx";
$db="xxxxx";
$connect= mysql_connect($host,$user,$pass);
if (!$connect)die ("Cannot connect!");
mysql_select_db($db, $connect);
$result = mysql_query("
SELECT
*
FROM
url
");
if($result){
while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
$url = $row['urlss'];
echo '<li>'.$url.'</li>';
}
}
The result output is
row1
row2
row3
row4
I want to get output In below manner
row1
//wait 5 sec
row2
//wait 5 sec
row3
//wait 5 sec
row4
//wait 5 sec
Thanks