Salve ragazzi, dovrei fare una funzioncina che mi indica il numero di volte che è stato clikkato un banner e lo memorizza nella mia tabella nel db! ovviamente ho piu banner!
ho trovato in rete:
Codice PHP:
<mt:Entries lastn="999">
$ad[<mt:EntryId />]['pic']='<mt:EntryBody strip_linefeeds='1' encode_php='1' />';
$ad[<mt:EntryId />]['link']='<mt:EntryKeywords strip_linefeeds='1' encode_php='1' />';
$ad[<mt:EntryId />]['title']='<mt:EntryTitle encode_php='1' />';
</MTEntries>
$rn = array_rand($ad);
echo '<a href="' . $ad[$rn]['link'] . '" title="' . $ad[$rn]['title'] . '">';
echo '[img]'.$ad[$rn]['pic'] . '[/img]</a>';
ma sinceramente nn capisco la prima parte, qualcuno potrebbe aiutarmi!!
help me and thank you