How do you print a table in html and php?
Answer to your question: No, there isn't. Show However, I did find the idea interesting so I've written a function that does just that. However, your example uses MySQL() which is deprecated and insecure. So I'll be using a PDO class instead. Please keep in mind that this function is only usefull for printing out a database table. It's NOT secure against injection and therefor should NEVER be used with user input inside the query!
|