View Single Post
Old 01-18-2013, 09:09 PM   PM User | #7
SlayerACC
Regular Coder

 
Join Date: Sep 2009
Location: Calgary, Alberta
Posts: 222
Thanks: 45
Thanked 3 Times in 3 Posts
SlayerACC is an unknown quantity at this point
how can I get the link to call this funtion??

PHP Code:
function countclick($advert_id)
{
include (
'config.php');
mysql_query("UPDATE adverts SET clicks = clicks + 1 WHERE advert_id = '" $advert_id "'") or die(mysql_error());


PHP Code:
$ad="<a href=\"".$row['link']."\" target=\"_blank\" onclick=\"'.countclick($advert_id);.'\" onmouseout=\"window.status=' ';return true;\">".$row['image']."</a><br/>"
SlayerACC is offline   Reply With Quote