Reply to Re: INSERT into mysql alway make two entries

Your name:

Reply:


Posted by Steve on 09/14/05 12:27

> $result = mysql_query("INSERT INTO session SET ssid='$season',ip='$rip'",$connect);

Andy's explanation is certainly correct: the reason you only get one
record if the ssid is hard-coded is probably because you have a unique
key constraint in the table so the second INSERT overwrites the first.
This doesn't happen if you generate the ssid because it is unique each
time. You must be calling the register function twice.

---
Steve

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация