|
Posted by The.Relinator on 12/11/06 02:10
Hello, I am unable to get the following piece of code to work as
desired. The fields valuable seems to contain all values however the
vaules variable only contains the first assignied with $values = '\'' .
$arry[$keys[0]] . '\''; Any help regarding this issue would be kindly
appreciated, thank you.
$keys = array_keys($arry);
$fields = '`' . $keys[0] . '`';
$values = '\'' . $arry[$keys[0]] . '\'';
foreach($keys as $key)
{
if($key != $keys[0]) {
$fields .= ', `' . $key . '`';
$vaules .= ', \'' . $arry[$key] . '\'';
}
}
Navigation:
[Reply to this message]
|