View Single Post
ישן 24-07-08, 16:00   # 1
Panda
הוסטסניון
 
Panda's Avatar
 
מיני פרופיל
תאריך הצטרפות: Nov 2005
הודעות: 2,481

Panda לא מחובר  

עזרה עם קוד ב-PHP.

שלום לכולם.

היום התחלתי לבנות מערכת, וזה כל הזמן אומר שקיימת שגיאה בשאילתה.

PHP קוד:
      $caption $_POST['date'];

      
$text "<br /><br /><font color='#256cac'><b><u>Download all today's music on RapidShare</u></b></font><br /><a href='".$rapid."'>".$rapid."</a><br /><font color='#256cac'>----------------------------------------------------------</font><br /><br /><br />";
      
$text $text.$open.$_POST['song1_n'].$middle.$_POST['song1_l'].$middle2.$_POST['song1_l'].$middle3;
      
$text $text.$open.$_POST['song2_n'].$middle.$_POST['song2_l'].$middle2.$_POST['song2_l'].$middle3;
      
$text $text.$open.$_POST['song3_n'].$middle.$_POST['song3_l'].$middle2.$_POST['song3_l'].$middle3;
      
$text $text.$open.$_POST['song4_n'].$middle.$_POST['song4_l'].$middle2.$_POST['song4_l'].$middle3;
      
$text $text.$open.$_POST['song5_n'].$middle.$_POST['song5_l'].$middle2.$_POST['song5_l'].$middle3;
      
$text $text.$open.$_POST['song6_n'].$middle.$_POST['song6_l'].$middle2.$_POST['song6_l'].$middle3;

$query mysql_query("INSERT INTO music_news (caption,content) VALUES ('$caption','$text')"$db_conn) or die (mysql_error()); 
בדקתי את זה והבעיה שאני מכניס למסד היא בתוכן שיש במשתנה text.

מישהו יכול לעזור בבקשה?
עומר.
  Reply With Quote