Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]Problem z tokenem
monter2313
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 28.02.2012

Ostrzeżenie: (0%)
-----


  1. <html>
  2. <head>
  3. </head>
  4.  
  5. <?
  6. ini_set('display_errors','1');
  7.  
  8.  
  9. $tytul = $_POST['Nazwa'];
  10. $tresc = $_POST['Tresc'];
  11. $miejscowosc = $_POST['Miejscowosc'];
  12. $numer = $_POST['Numer_tel_oferty'];
  13.  
  14. $id = $_GET['id'];
  15. if(file_exists("CONFIG/config.php")) require_once("CONFIG/config.php");
  16. connect();
  17.  
  18. $zapytanie = "UPDATE ".PREFIX."oferty
  19. SET Nazwa_oferty = '$tytul' Tresc_oferty = '$tresc' Miejscowosc_oferty = '$miejscowosc' Numer_tel_oferty = '$numer'
  20. WHERE Id_oferty = '".$_GET['id']."';
  21. $wynik = mysql_query($zapytanie) or die (mysql_error());
  22. close();
  23.  
  24.  
  25. ?>
  26.  
  27.  
  28. <body>
  29. <form method='POST' action='ogloszenia.php'>
  30. <button type="submit" name="Zobacz_ogloszenia" style="background-color: blue; width:400px; height:40px;background-repeat: no-repeat; background-size: 150% 150%;font-size:20pt;color: white; position: relative; left: 0px; top: 240">Zobacz ogloszenia</button>
  31. </form>
  32. </body>
  33. </html>


Błąd Parse error: syntax error, unexpected T_STRING in /home/students/ie2012/magick7/public_html/new/edytuj_oglo2.php on line 31


Oświeci mnie ktoś co za błąd popełniłem... (IMG:style_emoticons/default/sad.gif) PHP byc ciężkie
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.09.2025 - 04:45