Forgot your password?



 

Why sign up?
- One account for five websites!
- Free access to Premium Codes
- Acess to cool web tools
- Ask and answer questions
- Stay ahead of other web developers
- and MUCH MORE!

 





Feel The Power

webPhp Code: Mysql result all


There is a PHP function named odbc_result_all which returns the query results in a table. I have frequently found it useful to have the same function for MySQL queries. This function will create a table populated with the data as well as the field names.

Usage:




$result = dbQuery("SELECT * FROM tableName");

mysql_result_all($result);




I am not a PHP master, so any improvement suggestions are welcome.

If you don't know how to use this code or need more information Click here!

Go to Homepage


 

You can leave comments once you sign in/up.


Review

Please Rate this!

Visitor

Onlines:
Total Online:
Recent Members: Moch Husen Hadi Legana, Jezreel, elsopky, hitech40229, Dineshpaswan