I am using the following syntax to insert something into my SQL-Tables:
$db = @mysqli_connect("", "", "") or die("connection failed!");
mysqli_select_db($db,'');
$user_stuff;
$sql = "INSERT INTO whatever ( ... ) VALUES (... '$user_stuff')";
$db->query($sql);
mysqli_close($db);
Is this save against SQL Injections? I am not sure how to use prepared statements here with that syntax? Or are these prepared statements already implemented inside of ->query(...)
???