hello,
i have the following problem:
i have in php an array structure with user-prefs that have to be stored
onto DB....
actually i look up if the corresponding entry exists (comparing
user-name and field-name) if yes i update, if no i insert....
this isn't very appealing, but i couldn't find another way yet to make
this shorter...
would be nice if something like the following existed:
replace settings set auser='toto',field='lang',data='fr' where
auser='toto' and field='lang';
update settings set auser='toto',field='lang',data='fr' where
auser='toto' and field='lang' REPLACE;
or even better:
replace settings keys(auser,field) set auser='toto',field='lang',data='fr';
--
ciao bboett
==============================================================
bboett@earthling.net
http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett
===============================================================
the total amount of intelligence on earth is constant.
human population is growing....