18.11.2016, 17:13
Hmm interesting, so we could have objects being loaded from a Filterscipt that has the plugin and such (using pawn). That actually makes it perfect
I wonder tho, how would you actually do some of the SQLi inside the SAMPPHP? I see some informations in the OP but its quite outdated and I dont see any SQLi examples.
For example, core PHP would be something like
Example code, wrote it on forums, not sure if its gonna work but I hope you get my point
I wonder tho, how would you actually do some of the SQLi inside the SAMPPHP? I see some informations in the OP but its quite outdated and I dont see any SQLi examples.
For example, core PHP would be something like
Example code, wrote it on forums, not sure if its gonna work but I hope you get my point
PHP код:
function Connect() {
$host = "localhost";
$user = "root";
$pass = "";
$db = "myDB";
$conn = mysqli_connect($host, $user, $pass, $db);
return $conn;
}
//meanwhile somewhere else...
$conn = Connect();
$result = $conn->query("SELECT * FROM users WHERE noob='Noob'");
if($result->num_rows >= 1) {
while($row = $result->fetch_assoc()) {
echo "Bla bla bla";
}
}