Skip to content Skip to sidebar Skip to footer

Use Global Variables To Dynamically Change URL

So this is going to be really hard to explain, I have an A folder and I have a B folder. I am using a common database for both of them. Both folder have following files, inside ea

Solution 1:

I looked through the google drive link you provided.

view.php : line 64

$project_name_download_form = $_GET['project_name'];

Unless you are accessing view.php with a url like this:

a.example.com\view.php?version=1&project_name=apple

Your $project_name_download_form will have an empty string value and your SQL query becomes:

SELECT demo_id, demo_name, demo_version, demo_details, file 
                      FROM demo
                      WHERE  demo_name = ''
                      AND  demo_version = '1'

So 2 actions, change line 64 to:

$project_name_download_form = $GLOBALS['project_name'];

And then check the database directly to make sure the demo_name column has values being set in it (and not just blank).


Post a Comment for "Use Global Variables To Dynamically Change URL"