mysql - I need assistance in determing what is wrong with my delete statement -


ok, keep getting a:

fatal error: have error in sql syntax; check manual corresponds mysql server version right syntax:

my delete statement looks this:

"delete tblsymbol userid=$personid"."and symbol=$stock" 

does see wrong delete statement? using right?

first of all, there not seem space before and.

second, code vulnerable sql injection. should not use $ variables construct statements. instead, use ? instead , prepared statements.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -