Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once "config.php";
- $con=mysqli_connect($db_hostname, $db_username, $db_password);
- if (mysqli_connect_errno())
- {
- echo "Failed to connect to MySQL: ".mysqli_connect_error();
- }
- $sql="CREATE TABLE quoter (
- id int NOT NULL AUTO_INCREMENT,
- quote text NOT NULL,
- quoteby CHAR(50) NOT NULL,
- PIMARY KEY (id)
- )";
- if (mysqli_query($con,$sql))
- {
- echo "Table 'quoter' was created sucessfully";
- }
- else
- {
- echo "Error creating table 'quoter': ".mysqli_error($con);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement