Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z MYSQL proszę o pomoc
sembsa
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 7.01.2006

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


To jest mój plik mod1.php:
  1. <?
  2.  
  3. $a = $_GET['lista'];
  4. $wartosc = $_GET['cennan'];
  5. $stawkavat = $a;
  6. $cennab = $wartosc * (+ $stawkavat);
  7.  
  8. $sql = mysql_connect();
  9.  
  10.  $id = $_GET['id'];
  11.  $symbol = $_GET['symbol'];
  12.  $nazwa = $_GET['nazwa'];
  13.  $sztuk = $_GET['sztuk'];
  14.  $cennan = $_GET['cennan'];
  15.  
  16. $sql1 = "UPDATE programht SET symbol=$symbol, nazwa=$nazwa, sztuk=$sztuk, cennan=$ce
    nnan, cennab=$cennab, WHERE id=$id"
    ;
  17. $result = mysql_query($sql1) or die (mysql_error());
  18.  
  19. ?>


a wyświetla mi takie błąd:
  1. <?php
  2. 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 'hamulcowe do OPEL ASTRA , sztuk=25, cennan=158.25, cennab=169.3275, WHERE id=12' at line 1
  3. ?>

Moze ktoś wie dlaczego się tak dzieje
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: 23.08.2025 - 09:36