Hi ian trying to do a simple count query, when a member has posted, lets say 50 images, i want to take them to a order page, i have written this code below but freezes the browser,
PHP Code:$totalcount = 0;
$query = "SELECT count(*) as total from images where userid='$userid' ";
$result = mysql_query($query) or die("Query failed.");
while ($row = mysql_fetch_array($result))
{
$total=$row[total];
}
if($total>25)
header('Location: order.php');
exit();










Bookmarks