boogyman
08-21-2007, 09:19 PM
I am getting this error
[21-Aug-2007 17:09:15] PHP Warning: Invalid argument supplied for foreach() in /path/Parts.php on line 168
Parts.php
if( $sqlHelper->execute() )
{
while( $sqlHelper->db->moveNext() )
{
$subArray[] = $sqlHelper->db->record;
}
}
$key = $subArray['part_id'];
if( $convertChars )
{
line 168 foreach($subArray[$key] as $k => $val)
{
$subArray[$k] = htmlspecialchars($val, ENT_QUOTES, 'UTF-8');
}
}
please pardon sqlhelper... its part of the framework in the system to run the sql query
any help?
thanks
[21-Aug-2007 17:09:15] PHP Warning: Invalid argument supplied for foreach() in /path/Parts.php on line 168
Parts.php
if( $sqlHelper->execute() )
{
while( $sqlHelper->db->moveNext() )
{
$subArray[] = $sqlHelper->db->record;
}
}
$key = $subArray['part_id'];
if( $convertChars )
{
line 168 foreach($subArray[$key] as $k => $val)
{
$subArray[$k] = htmlspecialchars($val, ENT_QUOTES, 'UTF-8');
}
}
please pardon sqlhelper... its part of the framework in the system to run the sql query
any help?
thanks