I have managed to write a script that will run a count query and display the results. I would now like to add some code to be able to display the details of the query if the user chooses to do so. For this, I would need the script to pass two variables to the new page and run the query and display the results. I started by simply trying to pass a variable taken from the main page to the new page and display the content, but I didn't get the desired results. Here is the code that I have so far:
//If the user presses the "View Results" button, view_results.php is supposed be opened.
elseif (strcmp("Submit", $command) == 0)
//These two variables are in adserv.php
I was able to use this kind of analogy with another page, but this one instead of displaying the results, only ran an update query. Any ideas will be appreciated. Thanks!