I kada kilknem na submit pokaže:
Error: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 'http://blabla'>
ovaj code snippet nema nikakve veze sa greškom koja se pojavljuje. Zapravo, ovaj djelić koda je toliko neinformativan da ne mogu ni početi nagađati kako je URL dospio u SQL query
a) daj cijeli kod na review da ti mozemo pomoc gdje je zapelo..
b)
i koristenje URL kao string preko kojeg ces si vaditi podakte iz baze je, u najmanju ruku, glupo.
Postoje ID-evi, njih koristi za podatke nekog reda u tablici.
npr. ako imas tablicu gdje su ti URLovi, linkovi na neke druge stranice, logicnije je staviti u tablicu kada ju osmisljaj polje id koje stavis (INT(3), autoincrement) i pomocu toga si zivot olaksas. sebi i serveru..
_________________ FRENCH GUARD: No chance, English bed-wetting types.
I burst my pimples at you and call your door-opening request a silly thing, you tiny-brained wipers of other people's bottoms!Flikrac
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum