Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username="root";
- $password="entropy";
- $database="entropy";
- $con = mysql_connect(localhost,$username,$password);
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- @mysql_select_db($database) or die( "Unable to select database");
- $query = "CREATE TABLE IF NOT EXISTS snippets (
- tags VARCHAR(20),
- hits VARCHAR(20),
- desc VARCHAR(20),
- author VARCHAR(20),
- title VARCHAR(20),
- code VARCHAR(20)
- )";
- $result = mysql_query($query) or die(mysql_error());
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement