There is a PHP function named
<i>odbc_result_all</i> 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.<br />
Usage:<br />
<br />
<b>
$result = dbQuery("SELECT * FROM tableName");<br />
mysql_result_all($result);<br />
</b>
<br />
I am not a PHP master, so any improvement suggestions are
welcome.
Preview:
Free Code
Script:
Get Free Java, HTML, PHP codes and scripts. Use
code script and easily with HTML and web help
and samples. Learn Javascript, HTML and PHP source code, function, forms, website, forum, design
for webmasters.
Link
Us:
Just put this code to your pages
and you will have our logo in your site! This brings traffic to your
website.