![]() |
| ||
| INSERT INTO doing double duty 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){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. |
| ||
| Re: INSERT INTO doing double duty hi, Quote:
if ($uid > 0 ... ). Probably a loop statement above it, check it thoroughly. I dont think you have any problem with query. If you are still not satisfied with the query then try it out in MySQL console, executing the same SELECT statement, so that you can judge whether two records get inserted or one. You can do this as one of debug option. kath. |
| All times are GMT -4. The time now is 2:50 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC