Expanding (enhancing? :- ) on the previous . . .
How do you make it pull from that specific customers name and display the rest of the information in the mysql about their computer and what not?
Your "display all" page should look something like this.
<a href="detail.php?
cust=1234">View</a>
Where "1234" is extracted from "customer_id" in my modified example.
Then in detail.php,
if (isset($_get['cust']) and is_numeric($_get['cust']) and ($_get['cust'] > 0)) {
$id = $_get['cust'];
}
else {
echo "<p>Oops. Invalid customer id.</p>";
exit;
}
A note here - since you can rely on an id being unique (if it's not, you're doing something wrong) no need for a limit or a while. It's one record. Since you die on mysql_query, there's no practical need for an if/else on whether $QueryDb is null.
$customerQuery = "select * from `your_table_name` where `customer_id`=$id;
Note that, numeric fields need no quotes, text fields/date fields do.
// Make your connection previously, then
$QueryDb = mysql_query($customerQuery) or die(mysql_error());
if ($getData = mysql_fetch_array($QueryDb)) {
echo '
<p>' . $getData['first_name'] . ' ' . $getData[last_name'] . '</p>
<p>' . $getData['email'] . '</p>
<p>' . $getData['phone'] . '</p>
'; // and so on
}//close if
else{
echo "Something went wrong, no results";
}