Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Help with PHP Variable

$
0
0
 
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?

Viewing all articles
Browse latest Browse all 13200

Trending Articles