I've been working on a site that passes one information through $_REQUEST. The only reason for that, honestly, is that whenever i try using $_GET or $_POST it returns empty.
So i'm doing this:
<form action="Main.php?short_proj_name=<?= $_REQUEST['short_proj_name']?>" method="post" name="formProjName" target="_blank" id='frmProjName'>
So, this worked perfectly. Got the "Short_proj_name", opened the form, wonderful.
However, due to a couple of changes in the system, i had to tweak my query. It is a very heavy query that gets a lot of information, so it is understandable that it might be a little slow, but after the recent changes, it doesn't even load.
Here is what i changed:
".(
// PROJ_ID
!empty($_POST['proj_id'])
? " AND projetos_main.proj_id in (".implode(",", $_POST['proj_id']) .")"
: ""
)."
So in here i was simply checking if there was a project id, and if it had, it would be part of the query. I had to change it to this:
".(
// PROJ_ID
!empty($_POST['proj_id']) && !empty($_GET['proj_id'])
? " AND projetos_main.proj_id in (".implode(",", $_POST['proj_id']) .")"
: ""
)."
In here both the $_GET and the $_POST must be populated, because the recent changes made it so the $_GET = $_POST.
Now, after that, it doesn't load. It reaches the limit of 200 seconds. It only loads if i take away the $_REQUEST and change it to a $_GET or $_POST.
So, should $_REQUEST really slow the loading down by this much?