Querying MySQL database via user input

Here’s whats happening,
I’m have from where a user selects a service they want via drop down.
It is then parsed to the next page via javascript where it tells them what it selects.
I want it to then query the database based off of their selection, via PHP.

I’m not totally sure how to do this but I think it’d be…
user selection----->next page-----. php read user selection, (its a string) and then querys database based on selection.

thank you in advance!

Yes, you can either query on the next page, or use ajax request. And the requested page will be php script that will query database and return results.

okay, what would that php script look like?

Sponsor our Newsletter | Privacy Policy | Terms of Service