RSS Forums RSS
Please support our MySQL advertiser: Programming Forums

INSERT INTO doing double duty

Join Date: Jul 2007
Posts: 1
Reputation: devknob is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
devknob devknob is offline Offline
Newbie Poster

Question INSERT INTO doing double duty

  #1  
Jul 30th, 2007
PHP version 5.1.6
MySQL version 5.0.27-standard-log

Table is super simple, 1 primary key, uid, unixtime(timestamp),blog, pro, bull, pix

if($uid > 0 && $id != $uid){
include('connection.php');
mysql_query("INSERT INTO history SET uid='$uid', pro='$id'"); }

Thats all. Does anyone know why this would create two identical records every time?
Anyone see why this would give me two of the same record every time its executed? I have several other inserts sitewide that dont have the same problem. I have other queries on other pages that dont duplicate the entry but insert into the same table.
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:09 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC