Hi
I am having problems running a while loop twice. The first loop runs fine but the 2nd one does not run. Can anyone please advise why this is? My code is below
Thanks in advance.
Jonathan
$sql = "SELECT id, url, time FROM fyi_links";
$res = odbc_exec($con, $sql);
while ($row = odbc_fetch_array($res))
{
print($row['id'].",".$row['url'].",".$row['time']."\n");
}
//Run loop again after some other code
while ($row = odbc_fetch_array($res))
{
print($row['id'].",".$row['url'].",".$row['time']."\n");
}