23.04.2016, 15:47
Altes Problem ist schon beseitigt. Nun habe ich noch eine Frage. Ich möchte noch etwas dem Code hinzufügen.
Der Code:
Der Code:
Code:
$con = new mysqli('ip', 'user', 'pass', 'db');
if ($con->connect_errno) {
die("Failed to connect to MySQL: " . $con->connect_error);
}
$result= $con->query("SELECT * FROM webpageadmins WHERE ingame=1");
while($row= $result->fetch_assoc()) {
echo $row["name"]. " <br> ";
}
Nun zur Frage: Ich möchte gern noch hinzufügen, dass falls ALLE "ingame=0", folgendes angezeigt wird: No admins online.