Update fullbody.php
This commit is contained in:
parent
7e0bf54cba
commit
f1904071b8
|
|
@ -1,10 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
// this file is entirely made by nolanwhy, no skid pls
|
// this file is entirely made by nolanwhy, no skid pls
|
||||||
|
// mario here again with his comments
|
||||||
require_once '../../../core/classes.php';
|
require_once '../../../core/classes.php';
|
||||||
require_once '../../../core/config.php';
|
require_once '../../../core/config.php';
|
||||||
$id = (int)$_GET["userId"] ?? 0;
|
$id = (int)$_GET["userId"] ?? 1; // get the id if its none then 1
|
||||||
$stmt = $con->prepare("SELECT * FROM users WHERE id = :id");
|
$stmt = $con->prepare("SELECT * FROM users WHERE id = :id");
|
||||||
$stmt->bindParam(':id',$id,PDO::PARAM_INT);
|
$stmt->bindParam(':id',$id,PDO::PARAM_INT); // teh bind param
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$ruser = $stmt->fetch();
|
$ruser = $stmt->fetch();
|
||||||
if(!$ruser) {
|
if(!$ruser) {
|
||||||
|
|
@ -51,3 +52,4 @@ if(empty($ruser["thumbnail"])) {
|
||||||
} else {
|
} else {
|
||||||
echo base64_decode($ruser["thumbnail"]);
|
echo base64_decode($ruser["thumbnail"]);
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue