Hilfe datenbankprobleme!
haiopei
- php
Ich habe hier eine simple Datenbankabfrage, ich habe die namen der spalten, und die Zugänge kontrolliert... aber ich bekomme immer das selbe ergebnis:
Warning: Supplied argument is not a valid MySQL result resource in /home/www/web293/html/gb/auslesen.php on line 5
wer kann mir helfen? Hier ist das Script....
<?php
$dblink = mysql_connect("localhost","web293","xxxxxxx");
mysql_select_db("user_web293_1",$dblink);
$inhalt = mysql_query("select * fom gb");
$inhalt2 = mysql_fetch_array($inhalt);
$inhalt3 = $inhalt2["icq"];
echo $inhalt3;
?>
P.S.:
Es hilft mir leider nicht weiter im Archiev zu suchen...
thx
Haiopei
Siehe auch hier:
http://forum.de.selfhtml.org/?t=40498&m=221809
Hallo, Olaf,
Warning: Supplied argument is not a valid MySQL result resource in /home/www/web293/html/gb/auslesen.php on line 5
<?php
$dblink = mysql_connect("localhost","web293","xxxxxxx");
mysql_select_db("user_web293_1",$dblink);
$inhalt = mysql_query("select * fom gb");
^^^^^
Das sollte vermutlich FROM heißen, es fehlt ein »r«.
$inhalt2 = mysql_fetch_array($inhalt);
$inhalt3 = $inhalt2["icq"];
echo $inhalt3;
?>
Grüße,
Mathias