SELECT * FROM employees WHERE employeeNumber = '1056'
Voornaam | Achternaam | Functie | |
---|---|---|---|
Mary | Patterson | mpatterso@classicmodelcars.com | VP Sales |
<?php
///////////////////getuser.php//////////////////
include "connecti.php";
$q=$_GET["q"];
$sql="SELECT * FROM employees WHERE employeeNumber = '".$q."'";
//$result = mysql_query($sql);
$result = $mysqli->query($sql);
echo "$sql";
echo "<table border='1'>
<tr>
<th>Voornaam</th>
<th>Achternaam</th>
<th>E-mail</th>
<th>Functie</th>
</tr>";
while($row = $result->fetch_assoc())
{
echo "<tr>";
echo "<td>" . $row['firstName'] . "</td>";
echo "<td>" . $row['lastName'] . "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "<td>" . $row['jobTitle'] . "</td>";
echo "</tr>";
}
echo "</table>";
///////////////////einde getuser.php//////////////////
show_source(__FILE__);
?>