PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Maybe simple for somebody, Maybe not achievable, but "I" can't do it. I am trying to create a table, but somes of the vars are in a column which has the same names as the returned row. basically the script should replicate the following:
going to be <pre>'d or is this actual code?
If not.. it should (maybe should isn't the right word.. we'll use 'should work') like this (I prefer echo to print)
print "<tr>";
print "<td >"/* split up direct string from vars with . */ . $row['part_name']."</td>";
print "<td>".$row[$row['part_code']]."</td>";
print "<td>".$row['cost_1']."</td>";
print "<td>".$fivetotal."</td>";
print "</tr>";
Thanks sky. what I needed is now working. I am sure there is a better way, but this is whats working for know. I will show the rest of the code so you know what my problem was: