Black Tiger
Active Member
i have problem i have show error on my site
Duplicate entry 'some tag' for key #
its change every reffesh page. i want its not show ignor it..
i use this mysql coomand in my php code
for insert
and for select
Duplicate entry 'some tag' for key #
its change every reffesh page. i want its not show ignor it..
i use this mysql coomand in my php code
for insert
PHP:
$remote_ip = $_SERVER['REMOTE_ADDR'];
mysql_query("INSERT IGNORE INTO search (tag, ip_address) VALUES ('$query', '$remote_ip')");
and for select
PHP:
$query1 = "SELECT `tag` FROM `search` ORDER BY RAND() LIMIT 10";
$query1 = mysql_query($query1);