I am having a lot of trouble using PHP to insert data into my database.
Most of my script seems to work, until it comes to the actual query.
Here is the code:
<?php>
$test=$_POST['test']
$db = new mysqli('******', '******', '******', '******');
$query = 'INSERT INTO `C239198_test`.`test` (`name`) VALUES (\'hey\');';
$result = $db->query($query)
echo $test
$db->close();
?>