MySQL Varibles Returning Problem
#6

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Well in his code he was originally selecting everything, but only using a single value:

pawn Код:
UserStats[playerid][Admin] = strval(field[2]);
That's all that was in the snippet anyway, so if he was just going to use that value, why select everything? Just select admin or whatever you called that column.

pawn Код:
"SELECT ColumName FROM `table` WHERE Name = 'something'"
You need to wrap 'grave accents' (`) around each column/field if you use one in your query, otherwise the query won't work.
Reply


Messages In This Thread
MySQL Varibles Returning Problem - by Kyle - 13.04.2011, 10:47
Re: MySQL Varibles Returning Problem - by Alby Fire - 13.04.2011, 11:35
Re: MySQL Varibles Returning Problem - by JaTochNietDan - 13.04.2011, 13:54
Re: MySQL Varibles Returning Problem - by Alby Fire - 13.04.2011, 15:51
Re: MySQL Varibles Returning Problem - by JaTochNietDan - 13.04.2011, 17:08
Re: MySQL Varibles Returning Problem - by Calgon - 13.04.2011, 17:47
Re: MySQL Varibles Returning Problem - by JaTochNietDan - 13.04.2011, 17:52
Re: MySQL Varibles Returning Problem - by Calgon - 13.04.2011, 18:07
Re: MySQL Varibles Returning Problem - by Carrot - 13.04.2011, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)