How to chang this query from PDO to SQLi?


I am trying to get user’s information and show them in user’s profile. And i found this query but it is in PDO and my work is in sqli here the query if(isset($ _SESSION[‘user’])){ $ getuser=$ con->prepare("SELECT * From users where username=?"); $ getuser->execute(array($ sessionuser)); Sinfo=$ getuser->fetch();

And here the whole code

prepare(“SELECT * From users where username=?”); $ getuser->execute(array($ sessionuser)); Sinfo=$ getuser->fetch(); ?> Username: Email: Register Date: Password: