Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [MySQL][PHP] skrypt wysyłania danych do bazy
-Gość-
post
Post #1





Goście







  1. <?php
  2. include ('polacz.php');
  3.  
  4. $imie = $_POST['imie'];
  5.  
  6. <form action="index.php" method="post">
  7. <input name="imie" value="" />
  8. <input type="submit" value="Wyslij" name="submit"/>
  9. </form> '
  10.  
  11. $zapytanie = "INSERT INTO `users` VALUES('$imie')";
  12. $wykonaj = mysql_query($zapytanie);
  13.  
  14. ?>


Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/beosky/public_html/index.php on line 12

W czym problem?
Go to the top of the page
+Quote Post
usb2.0
post
Post #2





Grupa: Zarejestrowani
Postów: 341
Pomógł: 25
Dołączył: 28.09.2008
Skąd: Lublin

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


eeeee..
średnik po echo?

Ten post edytował usb2.0 15.04.2012, 20:43:50
Go to the top of the page
+Quote Post
Ruch Radzionków
post
Post #3





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

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


  1. <?php
  2. include ('polacz.php');
  3.  
  4. $imie = $_POST['imie'];
  5.  
  6. <form action="index.php" method="post">
  7. <input name="imie" value="" />
  8. <input type="submit" value="Wyslij" name="submit"/>
  9. </form> ';
  10.  
  11. $zapytanie = "INSERT INTO `users` VALUES('$imie')";
  12. $wykonaj = mysql_query($zapytanie);
  13.  
  14. ?>
Go to the top of the page
+Quote Post

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: 24.08.2025 - 04:23