PHP-Code:
mysql_select_db(mysql4scripte) OR die(mysql_error());
$result = mysql_query("SELECT COUNT(*) FROM wuensche");
echo $result;
aber eigendlich sollte es ja eine Zahl ausgeben (in dem fall 1)
mysql_select_db(mysql4scripte) OR die(mysql_error());
$result = mysql_query("SELECT COUNT(*) FROM wuensche");
echo $result;
mysql_select_db(mysql4scripte) OR die(mysql_error());
$result = mysql_query("SELECT COUNT(*) FROM wuensche");
$result = mysql_fetch_row($result);
var_dump($result);
mysql_select_db(mysql4scripte) OR die(mysql_error());
$result = mysql_query("SELECT COUNT(*) FROM wuensche");
$result = mysql_fetch_row($result);
var_dump($result);
echo $result[0];
Kommentar