Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>So, judging from the link you posted in the comments above:</p> <pre><code>rerepo.tk/mcv.php?user=test&amp;password=test&amp;version=13 </code></pre> <p>I see that you're trying to pass in variables through the URL using register_globals</p> <p>The problem here is that while you pass in the variables initially from the url, you redefine the values of those variables in your script to "" in your code. So initially, it was for example</p> <pre><code>$version = 13 </code></pre> <p>from the assignment in your URL, but after you called</p> <pre><code>$version = "" </code></pre> <p>this overwrote what you assigned $version in the URL, since it was run afterwards.</p> <p>Because of this, your value of version is always "", causing your script to constantly get the value of $a to be false, which has been explained in detail by Josh.</p> <p>So basically, to fix this problem, all you have to do is remove this part of your code:</p> <pre><code>$user = ""; $password = ""; $version = ""; </code></pre> <p>I tested this on my own computer, and it worked. However, in the case that this doesn't solve your problem, it is likely "register_globals" is turned off on your server.</p> <p>Edit: If you are now using $_POST to pass the variables, then assign your variables as follows:</p> <pre><code>$user = $_POST["user"]; $password = $_POST["password"]; $version = $_POST["version"]; </code></pre> <p>This is assuming that the variables you're posting is named the same way as when you had it passed in the URL.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload