I have the following database array:
for($i = 0; $i < $InboxCount; $i++)
{
$Inbox_row = mysql_fetch_array($List_Inbox);
echo"
<tr>
<td>
".$Inbox_row['cust_order_date']."
</td>
<td>
".$Inbox_row['cust_name']."
</td>
<td>
".$Inbox_row['cust_email']."
</td>
<td>
".$Inbox_row['cust_phone']."
</td>
</tr>";
}
}
but I want the field names to be variables that can be defined in another file (like a config file), for this:
".$Inbox_row['$cust_field']."
But that will not work - is there an easy way I can do that without all sorts of extra code?