[PHPLIB-DEV] cvs commit From: carmelo (phplib-dev <email protected>)
Date: 01/23/00

From: carmelo
Date: Sun Jan 23 14:13:24 2000
Modified files:
      php-lib/php/ct_mysql.inc

Log message:
corrected a bug in the replace statement, seems the where clause
doesn't work on my system so I removed he where clause and
made it set the fields instead, it products trhe same result
and don't complain on my system at least.
waiting for news...

Index: php-lib/php/ct_mysql.inc
diff -u php-lib/php/ct_mysql.inc:1.2 php-lib/php/ct_mysql.inc:1.3
--- php-lib/php/ct_mysql.inc:1.2 Fri Jan 14 09:38:32 2000
+++ php-lib/php/ct_mysql.inc Sun Jan 23 14:12:54 2000
@@ -3,7 +3,7 @@
 ## Copyright (c) 1998,1999 NetUSE GmbH
 ## Boris Erdmann, Kristian Koehntopp
 ##
-## $Id: ct_mysql.inc,v 1.2 2000/01/14 08:38:32 kir Exp $
+## $Id: ct_mysql.inc,v 1.3 2000/01/23 13:12:54 carmelo Exp $
 ##
 ## PHPLIB Data Storage Container for MySQL databases.
 ##
@@ -70,7 +70,7 @@
     $name = addslashes($name);
     $now = date("YmdHis", time());
 
- $query = sprintf("replace into %s set p_valenc='%s', p_valpos='%s', p_val='%s', p_changed='%s' where p_sid='%s' and p_name='%s'",
+ $query = sprintf("replace into %s set p_valenc='%s', p_valpos='%s', p_val='%s', p_changed='%s', p_sid='%s' and p_name='%s'",
       $this->database_table,
       $this->encoding_mode,
       '000000',

-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.