I am not that familiar with how SQL works. I am trying to set up a form where the user will pick items that they want to have included in a SQL statement (Such as Job No, Client, etc). Then I will have another box where they can select the parameters of which to search by (such as date, etc). So far my statement looks like this:
mysql_select_db($database_Thor, $Thor);
$query_RstServices = "SELECT '$include' FROM POJOBDETAIL, POProjIdent WHERE PIDate = '2003-12-31' and POJJobNo=PIJobNo";
$RstServices = mysql_query($query_RstServices, $Thor) or die(mysql_error());
$row_RstServices = mysql_fetch_array($RstServices);
$totalRows_RstServices = mysql_num_rows($RstServices);
I am not exactly sure what all I am doing here...this is really some code that I found and have edited it to meet my needs.
My problem is that I don't know how to get the information out of the database and into a HTML table for the user to view. Any help would be GREATLY appreicated.