I have a table with a lots of fields. Some fields are like this :
cost1
cost2
cost3
I query the database and get the results as an object via mysql_fetch_object.
but for some reason, I want something like this :
$cost = $row->cost."1";
actually I want to put it in the loop and the loop have some calculations based on the value of the cost. So I want to put the loop counter variable with the $row->cost thing, so that, it can be interpreted like this :