Jump to content

[HELP] tostring


BusDunk

Recommended Posts

Hello, my problem is that I cannot get back a data from my database. When I try to do it with a dbExec and tostring, it only answers "true"

local test = tostring(dbExec(handler,"SELECT favorite_color FROM players")) 
outputChatBox("Your favorite color is : "..test.." ", source, 125,0,0) 

ChatBox shows : Your favorite color is : true

I would like the ChatBox to display (for example) : Your favorite color is : red

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...