hey ich möchte gerne daten aus einer MySQL - Tabelle auslesen aber irgendwie funzt das nicht, woran könnte das liegen?
<?php
$dbhost = 'localhost';
$dbname = 'nico';
$dbpass = '345345';
$dbuser = 'neco345';
mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname);
$sql = "SELECT * FROM `Altersliste`";
$result = mysql_query($sql);
while($data = mysql_fetch_assoc($result))
{
echo $data['Altersliste']."<br>";
}
?>
<?php
$dbhost = 'localhost';
$dbname = 'nico';
$dbpass = '345345';
$dbuser = 'neco345';
mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname);
$sql = "SELECT * FROM `Altersliste`";
$result = mysql_query($sql);
while($data = mysql_fetch_assoc($result))
{
echo $data['Altersliste']."<br>";
}
?>
Kommentar