[development] Best practice for update_sql?

mark burdett mfburdett at gmail.com
Fri Feb 29 18:38:10 UTC 2008


On Fri, Feb 29, 2008 at 8:01 AM, Earnie Boyd
<earnie at users.sourceforge.net> wrote:
>  $sql[] = "UPDATE {profile_files} SET category = '%s' WHERE
>  LOWER(category) = '%s'";
>  $sql[] = 'Account settings';
>  $sql[] = 'account';
>  $ret[] = update_sql($sql);

I guess this was an example of how it could work but doesn't?
update_sql and db_query need a string as their argument and first
argument, respectively.

--mark


More information about the development mailing list