Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
<?php
$con = mysql_connect("$hostName","$dbName","$dbUserPw");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("$dbName", $con);
{
//This makes sure they did not leave any fields blank
if (!$_POST['firstname'])
die ('No one here by that name!!');
}
$result = mysql_query ("SELECT * FROM Sandbox
WHERE FirstName='$_POST[firstname]'");
while($row = mysql_fetch_array($result))
{
echo $row['FirstName'] . " " . $row['LastName'];
echo "<br />";
}
?>
I can't get this part to work, I have it on another file and it works fine.