|
Posted by Rik on 12/12/06 02:24
The.Relinator@gmail.com wrote:
> Never mind, I found the issue, it was just a small spelling mistake.
> I checked it many times and didnt find it until right after I posed
> this!
You can do this easier you know.
$keys = '`'.implode('`,`',array_keys($arry)).'`';
$value = "'".implode("', '",$arry)."'";
BTW, it looks like you're trying to build this for an insert query. If your
variables come from 'outside', be sure to validate them all first!
--
Rik Wasmus
Navigation:
[Reply to this message]
|