Need help with PHP-code, please!

Hello there,

I have a PHP-based webpage using MySql. I want to store the IP-adresses of the visitors into DB and when it’s a new visitor (ip) the start page will show an extra image (or pop up) that will never be shown again for the same IP.

Please help me, I’ve got the idea but not the code.


if(@mysql_query(‘INSERT INTO visitor SET ip="’.$_SERVER[‘REMOTE_ADDR’].’"’))
//display the info u wanna to be displayed once

ip just has to be have an index ‘UNIQUE’ in the db

Sponsor our Newsletter | Privacy Policy | Terms of Service