Hey guys, I am seeing an error in my PHP5
The error is "Cannot use string offset as an array"
Here is a piece of the code. The line where the error occurs is
I would greatly appreciate any feedback.
Thank you
The error is "Cannot use string offset as an array"
Here is a piece of the code. The line where the error occurs is
Code:
$country_codes['us'] = $price_array[$arr['us_masterid']]['sellers'];
Code:
if ($res_map && db_numrows($res_map))
{
$arr = db_fetch_array($res_map, 0);
if ($country_domain == "ca" && ($nr+$nr_enduser)>0)
{
$ret_info = 1;
$us_masterid = $arr['us_masterid'];
$retid_limit_sql_current = $retid_limit_sql;
$exclusive_cobrand_current = $exclusive_cobrand;
$retid_limit_sql = get_partner_rules(1);
$exclusive_cobrand = preg_match('/not in/i',$retid_limit_sql);
$price_array = getPrice(array($arr['us_masterid']),'M',1);
$retid_limit_sql = $retid_limit_sql_current;
$exclusive_cobrand = $exclusive_cobrand_current;
$country_codes['us'] = $price_array[$arr['us_masterid']]['sellers'];
}
I would greatly appreciate any feedback.
Thank you