if (isset($_GET["initial"])) { $initial=$_GET["initial"]; $dbQuery=$conn->prepare("select * from BabyNames Where BoyNames like :initial AND GirlNames like :initial"); $initial=$initial.'%'; $dbParams=array('initial'=>$initial); $dbQuery->execute($dbParams); echo "<table border='1' width='400'> <br><tr> <th> Boy Names</th> <th> Girl Names</th> <th> Girl Names</th> </tr></br>"; while ($dbRow = $dbQuery->fetch(PDO::FETCH_ASSOC)) { echo "<tr>"; echo "<td>"; echo $dbRow["BoyNames"]."<td>".$dbRow["GirlNames"]; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)