MySQL Forums
Forum List  »  German

Fehler: Incorrect arguments to mysql_stmt_execute!
Posted by: Ahmed Deedat
Date: December 15, 2010 08:14AM

Hallo Mysql Forum Mitglieder,
Ich hoffe Ihr könnt mir hierbei helfen, habe ein großes Problem. Es geht um ein Gästebuch was lokal auf meinem Webserver 100% funktioniert. Sobald ich es auf meinem Webserver im Internet hochlade, zeigt er mir immer wieder diese Fehlermeldung "Incorrect arguments to mysql_stmt_execute!"

Was bedeutet der erstmal, und warum erscheint er nicht lokal auf meinem Server??
hier der code,
<html>
<head>
<title>G&auml;stebuch</title>
</head>
<body>
<h1>G&auml;stebuch</h1>
<?php
include "entferneSlashes.php";

if (isset($_POST["Name"]) &&
isset($_POST["Email"]) &&
isset($_POST["Ueberschrift"]) &&
isset($_POST["Kommentar"])) {
if ($db = mysqli_connect("mysqlv18", "user", "pass", "Databasename")) {
$sql = "INSERT INTO gaestebuch
(ueberschrift,
eintrag,
autor,
email)
VALUES (?, ?, ?, ?)";
$kommando = mysqli_prepare($db, $sql);
mysqli_stmt_bind_param($kommando, "ssss",
$_POST["Ueberschrift"],
$_POST["Kommentar"],
$_POST["Name"],
$_POST["Email"]);
if (mysqli_stmt_execute($kommando)) {
$id = mysqli_insert_id($db);
echo "Eintrag hinzugef&uuml;gt.
<a href=\"gb-edit.php?id=$id\">Bearbeiten</a>";
} else {
echo "Fehler: " . mysqli_error($db) . "!";
}
mysqli_close($db);
} else {
echo "Fehler: " . mysqli_connect_error() . "!";
}
}
?>
<form method="post">
Name <input type="text" name="Name" /><br />
E-Mail-Adresse <input type="text" name="Email" /><br />
&Uuml;berschrift <input type="text" name="Ueberschrift" /><br />
Kommentar
<textarea cols="70" rows="10" name="Kommentar"></textarea><br />
<input type="submit" name="Submit" value="Eintragen" />
</form>
</body>
</html>

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.