What is the use of the MYSQL_BOTH in the code?
Asked By
0 points
N/A
Posted on - 03/19/2013

For example from this code if($count>0){
if($count>0){
while($row=mysql_fetch_array($result,MYSQL_BOTH)){
$username=$row['username']; $user_id=$row['user_id'];
$query5 ="UPDATE message SET status='read' WHERE user='$userdata'";
$result5=mysql_query($query5,$link) or die("Error". mysql_error());
Â
$query1="select * from message Where user='$user_id' ORDER BY date DESC, time DESC";
$result1=mysql_query($query1,$link) or die ("Error". mysql_error());
$count1=mysql_num_rows($result1);
