Code: Select all
$data = mysql_query("SELECT * FROM readit") or die(mysql_error());
while($row = mysql_fetch_array( $data ))
{
if ($user==$row['user'])
{
$a=$a+1;
$story[$a]=$row['story'];
}
}
if ($row['id']!=$story[2] AND $row['id']!=$story[3] .... AND $row['id']!=$story[x])Just wondering if there is any other way to do this other than listing out and checking every portion of the array in one huge if statement.