The mysqli functions have been deprecated by the introduction of the PDO class.
Developers creating websites with SQL database interaction are urged to use the PDO class instead of mysqli.
Why are you trying to assign $id to a string of it's self?
This has no use at all, the value of $id is already assigned to the $_GET superglobal.
Just remove that line from your code.
Also if you're going to use mysqli make sure to use the htmlspecialchars function.
Developers creating websites with SQL database interaction are urged to use the PDO class instead of mysqli.
PHP Code
<?php
$id = '"' . $id . '"';
Why are you trying to assign $id to a string of it's self?
This has no use at all, the value of $id is already assigned to the $_GET superglobal.
Just remove that line from your code.
Also if you're going to use mysqli make sure to use the htmlspecialchars function.
