Skip to content

Instantly share code, notes, and snippets.

@sephto
Created February 15, 2014 17:19
Show Gist options
  • Save sephto/9022216 to your computer and use it in GitHub Desktop.
Save sephto/9022216 to your computer and use it in GitHub Desktop.
<?php
$connection = mysql_connect("ocelot.aul.fiu.edu","aandr068","Boton1234");
// Check connection
if (!$connection)
{
echo "Connection failed: " . mysql_connect_error();
}
else
{
$result = mysql_query($connection,"SELECT * FROM students WHERE StudentID=" . $_POST["PantherID"] . "; " );
/* while($row = mysql_fetch_array($result))
{//
echo $row['PantherID'] . " " . $row['First_Name'] . " " . $row['Last_Name'] . " " .
$row['Middle_Name'] . " " . $row['Address_ONE'] . " " . $row['Address_TWO'] . " " .
$row['City'] . " " . $row['state_region'] . " " . $row['zipcode'] . " " .
$row['ZipCode'] . " " . $row['Primary_Tel'] . " " . $row['Secondary_tel'];
echo "<br>";
}
*/
}
mysqli_close($connection);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment