MySQL WHERE Question.
#1

So I'm currently building something for a HQ on my server, I'm however wondering if it's possible to like have two %s after a WHERE like:

Код:
WHERE FactionPass = '%s' ID = '2'
Код:
WHERE FactionPass = '%s', ID = '2'
This is the two ones I tried but none succeed, heres the whole actual string

pawn Код:
format(stringsize, sizeof(stringsize), "SELECT * FROM "SQL_FACTION" WHERE FactionPass = '%s' ID = '2' LIMIT 1",inputtext);
Reply
#2

pawn Код:
format(stringsize, sizeof(stringsize), "SELECT * FROM "SQL_FACTION" WHERE FactionPass = '%s' ID = '2' AND something = '%s'",inputtext, something);
Reply
#3

Quote:
Originally Posted by Aleksandar_Zivanovci
pawn Код:
format(stringsize, sizeof(stringsize), "SELECT * FROM "SQL_FACTION" WHERE FactionPass = '%s' ID = '2' AND something = '%s'",inputtext, something);
Thanks man!
Reply
#4

np
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)