HTML beginner |
|
$query = mysql_query('SELECT datum, COUNT(*) AS aantal FROM site_advertenties_bezoekers
WHERE
datum <= NOW()
AND
datum >= NOW() - INTERVAL 3 DAY
AND
advertentie_id = "'.mysql_real_escape_string($_GET['advertentie']).'"
GROUP BY datum
ORDER BY datum DESC') or die(mysql_error());
$query = mysql_query('SELECT datum, COUNT(*) AS aantal FROM site_advertenties_bezoekers WHERE datum <= NOW() AND datum >= NOW() - INTERVAL 3 DAY AND advertentie_id = "'.mysql_real_escape_string($_GET['advertentie']).'" GROUP BY datum ORDER BY datum DESC') OR die(mysql_error());
Zoiets? |