该网站应该在框中显示人们的姓名,但他们不在那里。
网站链接:http: //dorkhub.tdoyle.tk/
这是代码:
$query1 = mysqli_query($aVar, "SELECT name FROM users
ORDER BY RAND()");
$aName1 = mysqli_fetch_row($query1);
$name1 = $aName1['name'];
$query2 = mysqli_query($aVar, "SELECT name FROM users
ORDER BY RAND()");
$aName2 = mysqli_fetch_assoc($query2);
$name2 = $aName2['name'];
?>
<title>DorkHub. The online name-rating website.</title>
<link rel="stylesheet" type="text/css" href="style.css">
<body bgcolor='EAEAEA'>
<center>
<div id='TITLE'>
<h2>DorkHub. The online name-rating website.</h2>
</div>
<p>
<br>
<h3><?php echo $name1; ?></h3><h4> against </h4><h3><?php echo $name2; ?></h3>
<br><br>
<h2 style='font-family:Arial, Helvetica, sans-serif;'>Who's sounds the dorkiest?</h2>
<br><br>
<div id='vote'>
<h3 id='done' style='margin-right: 10px'>VOTE FOR FIRST</h3><h3 id='done'>VOTE FOR LAST</h3>