Hi All,
I am new to php, having to use it for a school project in which I am creating a database using MAMP. The databases fields (the columns) are ID(Primary Key, and not in the database itself), Name, Email and Phone, and for some entries there is no data. Where should I put the into the code below so that it automatically repeats itself, as I am having trouble doing this myself.
[php]<?php
include ‘includes/connection.php’;
$query = “SELECT * FROM people”;
$result = mysql_query(“SELECT * from people”);
echo “
Name | Phone | Delete | |
---|---|---|---|
” . $row[‘Name’] . “ | ” . $row[‘Email’] . “ | ” . $row[‘Phone’] . “ |
?>[/php]
I am guessing it would be in the line beginning with echo “
Thanks,
Alastair Hirsch