web_garaux
-
Posts
1 -
Joined
-
Last visited
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Passing a value in MySQL query using jQuery
in PHP Coding Help
Posted
Hello,
I’d have a question to ask. First, let me explain what I want to achieve.
In a table I display several links whose value (user id) is extracted from a database. By clicking on the link appears a modal pop up in which I would like to pass the selected value in a query using MySQL.
Here is the table
This is the link
and this is the script which retrieves data.
Now I would like to pass the value in a SELECT through a variable named $userId as shown below in order to show the user data.
Since I have little familiarity with the jQuery plugin I would like to ask you how to pass the selected id in the variable named $userId within the SELECT.
Thanks