changing a variable from a static to a fetch from mysql

Currently, all of our customers use the same businessid

businessId=5555555&login=

Now we want to move to multiple businessid’s and need to retrieve the data from a mysql db table field.

businessId=variable&login=

How can I achieve this?

It all depends on how they’re logging in. If its just a name and a password, then you can do it just like you have it. When you check the database for their credentials, just have it grab the business id also and put it in a session or cookie. then you’re free to use it when ever you needed it.

Sponsor our Newsletter | Privacy Policy | Terms of Service