I am getting the error "Warning: Illegal string offset 'cur_name'" I am just learning php and not sure how to fix this error, any help would be appreciated.
$amount=mysql_fetch_array(mysql_query("select sum(amount) from transactions where adv_id=".$rs_query["id"]." group by adv_id"));
if($amount)
{
echo $cur["cur_name"].$amount[0];
?>