Reimporting GIT repository

This commit is contained in:
Carlos Solís 2017-08-14 12:09:53 -06:00
commit 57f6a03c34
37 changed files with 9949 additions and 0 deletions

16
php/databaseDisplay.php Executable file
View file

@ -0,0 +1,16 @@
<?php
$conn = mysql_connect("localhost", "root", "N00b0r1337") or die(mysql_error());
$db = mysql_select_db("project") or die(mysql_error);
$sqlQuery = "SELECT * FROM messages";
$sqlResult = mysql_query($sqlQuery, $conn) or die(mysql_error());
while($row = mysql_fetch_array($sqlResult)) {
$id = $row["id"];
echo $id;
echo "<br/>";
$usr = $row["usr"];
echo $usr;
echo "<br/>";
}
echo mysql_result($sqlResult, 0, "NUMBER") or die(mysql_error());
?>