include('config.php'); $st = "select * from student"; $result = mysql_query($st); $cat = "SC"; echo "<table><tr><td>Fname</td><td>Mname</td><td>Lname</td><td>Category</td></tr>"; while($array = mysql_fetch_array($result)) { echo " ".$array['Category']; echo "<br>"; echo "String cat=".$cat." "; $match = strcasecmp($st ,$array['Category']); echo $match; if($match) { echo "<tr><td>".$array['FName']."</td>"; echo "<td>".$array['MName']."</td>"; echo "<td>".$array['LName']."</td>"; echo "<td>".$array['Category']."</td>"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)