INSERT Probleme
Olga
- php
Hallo, Leute. Hilfe!! Ich werde bald verrückt.
Kleine Programm
<?php
include("db_connect.inc");
mysql_connect($host, $user, $pwd);
mysql_select_db($dbname);
mysql_guery("INSERT INTO telephon (nummer, stueck) VALUES ('777', '7')");
mysql_close();
?>
Es funktioniert nicht. Meldung:
Fatal error: Call to undefined function: mysql_guery() in c:\wampp1326\htdocs\test8.php on line 6
Programm
<?php
session_start();
include("db_connect.inc");
mysql_connect($host, $user, $pwd);
mysql_select_db($dbname);
$result=mysql_query("SELECT nummer, stueck FROM telephon ");
while($row=mysql_fetch_array($result))
{
echo $row["nummer"];
echo "____";
echo $row["stueck"];
echo "<br>";
}
mysql_free_result($result);
mysql_close();
?>
läuft, also das liegt nicht in Verbindung oder Tabelle (Ich habe es mit phpmaAdmin gefüllt, die Typen ist auch richtig ( nummer - int(3), stueck int(2).
Ich habe WAMPP mit PHP4 und MySQL und Anfängerin.
Vielen Dank für eure Hilfe!
Olga
mysql_guery("INSERT INTO telephon (nummer, stueck) VALUES ('777', '7')");
mysql_guery <--- *G*uery? es heißt nämlich *Q*uery.
MfG, ABS