MySQL issues.
#1

Solved
Reply
#2

Check the WHERE clause, you have

pawn Код:
WHERE ID = 'd'
and should be

pawn Код:
WHERE ID = %d
Also, you have in most of them '%d', and only %s needs the '' in a query, as %d means an integer value.
Reply
#3

Quote:
Originally Posted by Xabi
Посмотреть сообщение
Check the WHERE clause, you have

pawn Код:
WHERE ID = 'd'
and should be

pawn Код:
WHERE ID = %d
Also, you have in most of them '%d', and only %s needs the '' in a query, as %d means an integer value.
I figured it out, it wasn't the clause infact. However, I also forgot the "%" beforehand. A stupid mistake to make, sorry for my stupidity. On the other hand, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)