View Single Post
  #1 (permalink)  
Old 09-07-03, 02:34 AM
andyinorbit2000 andyinorbit2000 is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question PHP + MySQL script help need

I have a script that records hits into a MySQL db using:

PHP Code:

mysql_db_query($database"INSERT INTO sales VALUES ('$ref', '$clientdate', '$clienttime', '$clientbrowser', 

'
$clientip', '$payment', '$clienturl')"
    or die(
"Database INSERT Error (line 34)"); 
However I need the script to check to see if the $ref value AND $clientdate value AND $clientip value are the same, if so dont store.

This way hits sent from the same reffer and using the IP address on the same day or not recorded in the db.

Any ideas?
If you would like to chat about this or would like any more info please email me at andyinorbit2000@yahoo.com


Thanks for any help you can give.
Andy
Reply With Quote