Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require('connection.php');
- $dbName = 'blog';
- $dbTest = mysql_select_db($dbName);
- $create = "CREATE TABLE blogTest ";
- $create .= "( blogId int(11) NOT NULL AUTO_INCREMENT, ";
- $create .= "author varchar(50) NOT NULL, ";
- $create .= "postDate timestamp() NOT NULL, ";
- $create .= "blog longtext NOT NULL, ";
- $create .= "PRIMARY KEY (blogId) );";
- mysql_query($create);
- if(!$dbName)
- {
- die('<br/>3rr0r: N0 t4bl3 c0nn3ct3d!');
- }
- else
- {
- echo '<br/>T4bl3 win!';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement