Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
<a href u varijabli

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
domagoj.k



Joined: 17 Apr 2006
Posts: 11

PostPosted: 18.04.2006 13:56    Post subject: <a href u varijabli Add user to your forum ignore list Reply with quote

Imam problem sa jednom formom...
Prvo ide forma pa u php-u:
U jednoj variabli:

Code:
 $short = "<a $target href='$link'>
<img width='100' border='0' align='left' src='$slikica' /></a>
$opis";



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'>

Di je greška?
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 18.04.2006 14:43    Post subject: Add user to your forum ignore list Reply with quote

Domagoj,

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

Meni izgleda kao da ne razumiješ što radiš
Back to top
View user's profile Send private message Send e-mail Visit poster's website
_butch



Joined: 10 Sep 2003
Posts: 870
Location: Maichno, Krlovc

PostPosted: 20.04.2006 00:40    Post subject: Add user to your forum ignore list Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group