Hello everyone,
I have
<?php
echo "<div class=\"results\">$total results matching $engfam.</div><br />";
echo "Level 3: $level3"; //need the information to echo here
$level3 = 0;
while ($row = mysql_fetch_array($sql)) {
if ($row['level'] == "3") {
$level3++;
}
echo "<div class=\"bottomCont\">";
echo "<table width=\"500px\" border=\"0\">";
echo "<tr>";
echo "<td class=\"number\" width=\"50px\" rowspan=\"3\">". $row['level'] ."</td>";
echo "<td width=\"225px\"><span class=\"outsideTheBox\">Engine Family Name:</span></td>";
echo "<td width=\"225px\">" . $row['engfam'] ."</td>";
//more code...
How can I get the $level3 variable to echo data in the incrementing takes place after where I need to echo the information?
Hope that makes sense... the code should.
Thanks
SC