First of all:
moonman89 wrote:1) check what boxes are selected..
u should create an array of checkboxes and the key of each element should be your $field (or id ...)
echo "<input type='checkbox' name='check[$field]' checked='checked'>";
This will return on POST value an array like this:
$_POST['check'] = array(
'field1'='',
'field2'='',
...
'fieldn'=''
);
and is your answer to the second question ...
moonman89 wrote:3) Print only enough rows in the table to actually display it right?
U can limit your select, look for LIMIT statement in SELECT syntax from mysql manual ...
moonman89 wrote:I have this for the php file that will display the table so far...HELP???
I dont work with postgresql but I can show u how I do in mysql
Tip ...
//create your query
$sql = "SELECT .....";
//send the query to mysql server
$rez = mysql_query($sql);
//grab result in an array
while($sc = mysql_fetch_assoc($rez)) {
//parse the results ....
}
Anyway u could look for the associated function for postgresql ...
Your last code is messed up:
$html .= "<center><table cellpadding=6 cellspacing=0 border='2'>\n";
//$html .= "</tr>\n"; /* u close the <tr> tag but u should open an his place is not here u want to open it into the loop soo u need to deleted */
$row=pg_Fetch_Row($sql_query);
for ($i=0; $i < $row; $i++){
/* u need to close your rows in the loop and u delete the sprintf funtion from the begining */
$html .= sprintf("<tr><td bgcolor=#111111><font color=ff3311 face=Verdana size=2>%s</td></tr>\n", $row[$i]);
}
//$html .= "</tr>\n"; /* this is not need it because you create your html rows into the loop, u need to delete this line */
$html .= "</table></center>\n"
echo $html
BTW, who wrote this script u or one of your friends and u try to modify it?