createdb.php

<?php include "base.php"; ?> <?php try { $create_table_command = 'CREATE TABLE tblToDoList(taskid integer primary key, taskname varchar(100),taskdate varchar(20), taskdesc varchar(300), priority integer, status varchar(50))'; $dbh->exec($create_table_command); echo "<br />" . $create_table_command ."\n"; } catch(PDOException $e) { echo $e->getMessage(); } ?>
My Web Design & Development

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.