I have a trouble with my mysql. It connects to database but it doesn't make a table. Here is an example of my code:
  $db = new mysqli('localhost', 'user.name', 'user.pass', 'db');
  if ($db === FALSE) {
     echo "ERRROR";
  }   
  $sql = "CREATE TABLE IF NOT EXISTS db (
      ID INT NOT NULL AUTO_INCREMENT,
      NAME VARCHAR(20) NULL
  )";
  $db->query($sql);
  if (mysqli_query($db, $sql)) {
     echo "TABLE CREATED SUCCESSFULLY";
  } else {
    echo "TABLE CREATED UNSUCCESSFULLY";
  }
I appreciate every answer, thank you for help!
 
     
     
     
    