Vote count:
0
This code is an include file that, for some reason, the select query will not run. My database has one input in it already, so it should return something.
<?php //Connecting to the database
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_USER', 'ericbran');
DEFINE ('DB_PASSWORD', 'Without fear is all bravery');
DEFINE ('DB_NAME', 'ericbran_familyFunction');
$dbc = mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to Mysql');
mysqli_select_db(DB_NAME, $dbc);
$printable = "SELECT * FROM users";
$results = mysqli_query($printable, $dbc) or die(mysqli_error());
while ($row = mysqli_fetch_assoc($results)){
foreach ($row as $name => $value){
print "$name: $value <br />\n";
}
print "<br /> \n";
}
print $results;
print'fuckme';
?>
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire