Re: Function works exactly once?

From: Date: Fri, 30 Jun 2000 03:18:15 +0000
Subject: Re: Function works exactly once?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3948@lists.php.net to get a copy of this message
It was HomerCode(tm)
$Timestamp = gmdate("m-d-Y h:i:s"); MySQL_db_query('database',"INSERT INTO top_action_log VALUES('$Timestamp','$Log_Text')") or die ("Can't INSERT Action Log Record");
Would help if the timestamp field wasn't specified as unique! The system's not that slow! The second (and any subsequent) failed to be inserted because they weren't unique. A holdover from a pervious implementation. DOH! -- www.SpamWhack.com A pre-emptive strike against spam A tornado is a lady whose skirts you do NOT want to look up! Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9

« previous php.general (#3948) next »