Okaaay, ich bin raus
Ein eigentlich super simples PHP Skript
$conn = mysqli_connect("","root","","dbname");
$sql = "SELECT user, score, timestamp FROM myTable";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
echo "user: " . $row["user"] . " - score: " . $row["score"] . " " . $row["timestamp"] . "<br>";
}
} else {
echo "0 results";
}
mysqli_close($conn);
erzeugt
Parse error: syntax error, unexpected double-quoted string "user: "
bezogen auf die die Zeile echo "user: " . $row["user"] . " - score: " . $row["score"] . " " . $row["timestamp"] . "<br>";
ARG Hilfe?
Danke, Ferdinand