- Impact
- 7
$sql = "select * from table where lastName='lastname'";
$result = mysql_query($sql);
while($row=mysql_fetch_array($result)) {
# $rowis an array with the field names as the array indices.
echo "Last Name: $row[lastName]<br>";
echo "First Name: $row[firstName]<br>";
}


