Hex code
#1

Hi,

Can i write hex code like that:

{FFFFFF}

To mysql database?
Reply
#2

What's the point?
Reply
#3

store them as string,
...........though the colors are integers
Reply
#4

Yes but do i need escape or smth? like i have in string that hex code, and i'am updatting

update table set hexcode='%s' WHERE name='%s'", PLAYERHEXCODE[ playerid ], playername );
Reply
#5

if the color code (hex code ) is used as string (meaning PLAYERHEXCODE[ playerid ] is string) in your script then you have to escape it.
Reply
#6

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
if the color code (hex code ) is used as string (meaning PLAYERHEXCODE[ playerid ] is string) in your script then you have to escape it.
Actually, there is no need to escape it if it's a string.
The only possible values are between {000000} and {FFFFFF}, there are no special characters.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)