Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> syntax error, blad, a nie powinien byc
dlugi_as
post
Post #1





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 29.11.2007

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


Irytujacy problem ktory mnie napotkal, wykonujac kod:

Cytat
$insert = "INSERT INTO movie VALUES (1,'Bruce wszechmogacy',5,2003,1,2); INSERT INTO movie (movie_id,movie_name,movie_type,movie_year,movie_leadactor,movie_director) VALUES (2,'Zycie biurowe',5,1999,5,6)";

$result = mysql_query($insert) or die (mysql_error());


konczy sie bledem

Cytat
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 '; INSERT INTO movie (movie_id,movie_name,movie_type,movie_year,movie_leadactor,m' at line 1


probowalem z tej zmiennej do phpmyadmin query wrzucic i wszystko przechodzi ok, dane sie dodaja, ale przez skrypt moj, juz nie :/
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 21.08.2025 - 05:27