04-01-2005, 17:14
|
|
|
חבר מתאריך: 22.09.04
הודעות: 217
|
|
בעיה בקוד הבא:
יש לי בעיה בקוד הבא:
קוד PHP:
<DIV align="center" dir="rtl"> <html> <head> <title>הוסף תמונה</title> </head> <body> <style> .sb { FONT-FAMILY: Arial; FONT-SIZE: 10pt; font-weight:bold; MARGIN-LEFT: 0px; background:#COCOCO; color: #456585; border-style: solid; border-width: 2 } </style> <?php include( "connect.php" ); if(isset($pic_url)) { $query = mysql_query("insert into gall(pic_id,pic_url) values($pic_id,'$pic_url')") or die(mysql_error()); echo" התמונה נשמרה בהצלחה "; ?> <meta charset="visual"> <?php } else { ?>
<table cellspacing="0" height="450" width="700" cellpadding="0" bordercolor="000000" border="1" align="center"> <tr> <td align="center"> <form action="<?php echo $PHP_SELF; ?>" method="post"> כתובת התמונה: <br> <input type="text" name="pic_url" size="13"> <br> <INPUT type="submit" class='sb' name="visual" value="הוסף תמונה">
</form> </td> </tr> </table> <? } ?> <A href="<?= $_SERVER["PHP_SELF"] ?>?logout=true">יציאה</A> <A href="<?= $_SERVER["PHP_SELF"] ?>?gall=delete">למחיקת תמונות</A> </DIV>
אחרי שאני כותב נגיד בלה בלה הוא מביא לי את השגיאה הבאה:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''בלה בלה')' at line 1
מה לא טוב בקוד?
|