How do I define the variable for an array so that the variable part of it parses correctly?
Table1 tells me which rate to use, which can be 1,2,or 3 ($x). The fields in table2 are rate1, rate2, rate3. I am able to get the SQL query to reference the right field, but how do I write the variable for the array?
doesn't work. I tried $rate[1] too but neither worked. Any help would be greatly appreciated. Mahalo, eCode:$rate.$x = $row['rate.$x'];



Reply With Quote

Bookmarks