Jump to content

Getting MySQL data, in a GUI?


Vivalavido

Recommended Posts

I was wondering, I made a GUI, wich has an Gridlist.

Now I also have a database ,wich hold some members.. How would I load in the database stuff in a client sided script? Is there something like callServer?

Cause I think triggerServerEvent would be going back and forth.. Like I triggerServerEvent in cleinside, then I triggerClientEvent back.. That would be a drag.. Any other solutions?

Thanks!

Link to comment

SQL is server-side, GUI is client-side. In other words, you will need to link the two scripts together somehow. For this, you should look into events. The GUI is clicked (or whatever) and sends an event (as a data request) to the server, which sends an event back with the answer.

You might want to take a look at the chapter of my guide dealing with events: http://robhol.net/guide/basics

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...