I have the following code that spits out the count fine, but it includes a table Header, and is placed into a table. I want to be able to store and place the variable(S) from the query ANYWHERE in an HTML page I want. How can this be done?
Any suggestions would be awesome!
Thanks in advance.
<?php
//connect to database
$connectionstring = odbc_connect(\"vpt\", \"root\", \"\");
//SQL query
$Query = \"SELECT COUNT(*) FROM customers WHERE (region LIKE \'%6%\')\";
//execute query
$queryexe = odbc_do($connectionstring, $Query);
//output results to standard output
//odbc_result_all($queryexe, \"BORDER=0\");
//disconnect from database
odbc_close($connectionstring);
?>
Any suggestions would be awesome!
Thanks in advance.
<?php
//connect to database
$connectionstring = odbc_connect(\"vpt\", \"root\", \"\");
//SQL query
$Query = \"SELECT COUNT(*) FROM customers WHERE (region LIKE \'%6%\')\";
//execute query
$queryexe = odbc_do($connectionstring, $Query);
//output results to standard output
//odbc_result_all($queryexe, \"BORDER=0\");
//disconnect from database
odbc_close($connectionstring);
?>