PHP-Code:
<?php
$db = mysqli_connect("localhost", "root", "", "Weltmeisterschaft");
$abfrage = "SELECT * FROM Weltmeisterschaft";
$ergebnis = mysqli_query($db, $abfrage);
while($row = mysqli_fetch_object($ergebnis))
{
echo $row->url;
}
?>
Fehler:
PHP-Code:
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Notice: Undefined property: stdClass::$url in C:\Program Files (x86)\XAMPP\htdocs\phpinfo.php on line 9
Woran liegt das genau? Was muss ich ändern?
Kommentar