![]() |
# 11 |
חבר בקהילה
|
יש לי עכשיו בעיה מוזרה אחרי שאני שולח הודעה זה רושם לי
Warning: Wrong parameter count for mysql_query() in /home/**/add.php on line 17 query failed : זה קוד שורה 17 $result = mysql_query($query) or die("query failed : " . mysql_query()); |
![]() |
![]() |
# 12 |
הוסטסניון
|
תראה את כל הקוד שלך
__________________
|
![]() |
![]() |
# 13 |
חבר בקהילה
|
<form method="post" action="">
שם:<input type="text" name="name" maxlength=15 /><br /> נושא:<input type="text" name="subject" maxlength=15 /><br /> תוכן ההודעה:<br /><textarea name="content" maxlength=40></textarea><br /> <input type="submit" value="הגב!" name="submit" /> </form> <?php $submit = $_POST['submit']; if ($submit) { include("connect.php"); $name = htmlspecialchars($_POST['name']); $subject = htmlspecialchars($_POST['subject']); $content = htmlspecialchars($_POST['content']); $date = date("j/n/y"); $query = "INSERT INTO table (name, subject, content, date) VALUES ('$name', '$subject', '$content', '$date')"; $result = mysql_query($query) or die("query failed : " . mysql_query()); echo "<font color='green'>התגובה נוספה בהצלחה!</font><br />"; echo "לחץ <a href=\"index.php\">כאן </a>כדי לעבור לעמוד התגובות"; } ?> <hr /> |
![]() |
![]() |
# 14 |
הוסטסניון
|
PHP קוד:
__________________
|
![]() |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|