Thank you again... I tried to use it, but I'm creating an error somewhere. The line "for($XXX=1;$XXX<=4;$XXX+)" was giving me a "parse error" unexpected "(". I commented it the three new lines I had added.
<? $query =
"SELECT allstate03.name,allstate03.school,allstate03.category,allstate03.division,allstate03.rank,allstate03.status
FROM allstate03
WHERE ((allstate03.name LIKE '$name%')
and (allstate03.school LIKE '$school%')
and (allstate03.category LIKE '$category%')
and (allstate03.division LIKE '$division%')
and (allstate03.rank LIKE '$rank%')
and (allstate03.status LIKE '$status%')
and (allstate03.status NOT LIKE 'NA'))
ORDER BY allstate03.$sort";
$resultt = mysql_query($query);
// Determine the number of students
$number = mysql_num_rows($resultt);
if ($number == 0) {
print "Sorry, there were no records matching those criteria";
} else {
while ($row = mysql_fetch_object($resultt)) {
$name=$row->name;
$school=$row->school;
$category=$row->category;
$division=$row->division;
$rank=$row->rank;
$status=$row->status;
// for($XXX=1;$XXX<=4;$XXX+)
// {
print "<tr><td><input type=text name='Name$XXX' size=27 value='$name'></td> <td><input type=text name='School$XXX' size=27 value='$school'</td> <td><input type=text name='Category$XXX' size=24 value='$category'</td> <td><input type=text name='Division$XXX' size=6 value='$division'></td> <td><input type=text name='Rank$XXX' size=4 value='$rank'></td><td><input type=text name='Status$XXX' size=6 value='$status'></td><td><input type=text name='Participating$XXX' size='6'></td></tr>";
// }
}
}
// Close the databaas connection
mysql_close();
?>
Also... when I created a test PHP file with only this code:
<?
for($XXX=1;$XXX<=4;$XXX+)
{
print "<tr><td><input type=text name='Name$XXX' size=27 value='$name'</td><td><input type=text name='School$XXX' size=27 value='$name'</td></tr>";
}
?>
I recieved the same error.
Thanks.
~Wayne