query("DROP TABLE IF EXISTS student")===TRUE) { printf("Drop student successfull.
"); } else { printf("Drop student failed: %s.
", $mysqli->error); } /* Create table */ $cp='utf8'; $mysqli->query("SET NAMES '".$cp."';"); // nastavi kodovanie if ($mysqli->query($sql) === TRUE) { printf("Table student successfully created.
"); } else { printf("Create student failed: %s.
", $mysqli->error); // exit(); } ?>