Help with PHP Variable

A variable is declared in index.php when the page loads (random number). When the user clicks on a link, I need to make a MySQL query with the variable. How would I do this?

When I ran the code with javascript ($.get(“run.php”);return false it doesn’t recognize the variable.

I think I have to use Ajax but I just really dont know how that works, I just started PHP and MySQL a few days ago.

Help?

I’m sorry but I didn’t got your question :frowning:

Sponsor our Newsletter | Privacy Policy | Terms of Service