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!
I have written the following function to retrieve info from a database and now need to display it. Until now I have used echo within the function but am now trying to remove that from it.
Firstly is this the correct way of doing this and secondly how do I call the function on another page and display the results.
Done that and I can see the contents of the array using your code. How do I get it to display all the cat_name parts of the array for instance. Would it be something like