Tuesday, 28 August 2018
Subscribe to:
Post Comments (Atom)
$query="SELECT cw_id FROM unihubUpcoming";
$result = mysql_query($query) or die(mysql_error());
if(!$result){
die('Query Failed!');
}
$row = mysql_fetch_assoc($result);
while ($row = mysql_fetch_array($result,MYSQL_NUM)) {
echo $row[0];
}
// get the first result
$row = mysql_fetch_assoc($result);
// but don't do anything with it
// loop and display all subsequent results
while ($row = mysql_fetch_array($result,MYSQL_NUM)) {
echo $row[0];
}
Hello Friends! I am Ramana a part time blogger from Hyderabad.
0 comments:
Post a Comment