Hallo,
habe Problem mit einer INSERT INTO Anweisung.
DB-Verbing haut hin, dann kommt folgende
Fehlermeldung:
"supplied argument is not a valid MySQL-Link resource in /x/xx/xxx in line xx"
Hier der Code, in dem der Fehler liegen muss. Alles andere (Verbindung etc.( klappt:
<schnipp>
$sql = "INSERT INTO $table (x,xx,xxx)
VALUES
('$_POST[x]','$_POST[xx]')";
if (mysql_query($sql, $link))
echo "SQL-Anweisung ok";
else
echo "SQL-Error".mysql_error($sql);
<schnapp>
MYSQL.ERROR gibt aus:
"supplied argument is not a valid MySQL-Link resource in /y/yy/yyy.php on line zz
Hab keine Ahnung, warum es nicht funzt.
Vielen Dank im Voraus !
gruss,
d
habe Problem mit einer INSERT INTO Anweisung.
DB-Verbing haut hin, dann kommt folgende
Fehlermeldung:
"supplied argument is not a valid MySQL-Link resource in /x/xx/xxx in line xx"
Hier der Code, in dem der Fehler liegen muss. Alles andere (Verbindung etc.( klappt:
<schnipp>
$sql = "INSERT INTO $table (x,xx,xxx)
VALUES
('$_POST[x]','$_POST[xx]')";
if (mysql_query($sql, $link))
echo "SQL-Anweisung ok";
else
echo "SQL-Error".mysql_error($sql);
<schnapp>
MYSQL.ERROR gibt aus:
"supplied argument is not a valid MySQL-Link resource in /y/yy/yyy.php on line zz
Hab keine Ahnung, warum es nicht funzt.
Vielen Dank im Voraus !
gruss,
d