I have a script that contains that part:
#########
mysql_query(\"UPDATE users SET domain = \'\".$_GET[\'domain\'].\"\' WHERE username = \'\".$_SESSION[\'username\'].\"\'\");
header(\"Location: [login to view URL]\");
}
if (isset($_GET[\'action\'])){
if ($_GET[\'action\'] == 1){
mysql_query(\"UPDATE googleimagefound SET status = 3 WHERE id = \".$_GET[\'q\'].\"\");
}else if ($_GET[\'action\'] == 2){
mysql_query(\"UPDATE googleimagefound SET deleted = 1 WHERE id = \".$_GET[\'q\'].\"\");
}else if ($_GET[\'action\'] == 3){
mysql_query(\"UPDATE googleimagefound SET status = 2 WHERE id = \".$_GET[\'q\'].\"\");
}else if ($_GET[\'action\'] == 4){
mysql_query(\"UPDATE googleimagefound SET status = 5 WHERE id = \".$_GET[\'q\'].\"\");
}
###########
By clicking on a button, the file \"[login to view URL]\" is loaded newly.
My problem now is:
When I am on the page \"[login to view URL]\", I dont want the script to load [login to view URL], but \"[login to view URL]\" - means: The script shall load the lastly opened URL, here: \"[login to view URL]\"
Hi, i hope you're doing well.
I've just read your project's description and i would like to help you with it.
I'm an experienced web developer with the necessary skills for getting this job done.
Responsibility and quality guaranteed,
Torricelli
Hello! It can be done with parsing some variables like $_SERVER query string. Additionally, I see an SQL injection that can lead to security breach.
I can help right now, contact.