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!
It really depends on whether you want your code to know the field names or not. If you want code that works with any table then the first one. If you know the specific column names and the code only deals with that table then the second.