I have this code:
<?php
@include_once('set.php');
@include_once('steamauth/steamauth.php');
if(!isset($_SESSION["steamid"])) {
Header("Location: index.php");
exit;
}
$link = $_POST["link"];
$link = mysql_real_escape_string($link);
$steam = $_SESSION["steamid"];
mysql_query("UPDATE users SET `tlink`='$link' WHERE `steamid`='$steam'");
Header("Location: settings.php");
exit;
?>
And I need to convert it to MySQLi because it's completely useless in's current state. Changing the "mysql_" to "mysqli_" doesn't work at all.