2007-10-30 22:31:13 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("../inc/bolt_db.inc");
|
|
|
|
|
2007-11-29 02:56:10 +00:00
|
|
|
$short_name = 'test_course';
|
|
|
|
$name = 'Test course';
|
|
|
|
$description = 'This course is a demonstration of Bolt';
|
|
|
|
$doc_file = 'bolt_course_sample.php';
|
|
|
|
$now = time();
|
2007-10-30 22:31:13 +00:00
|
|
|
|
2007-11-29 02:56:10 +00:00
|
|
|
if (BoltCourse::insert("(create_time, short_name, name, description, doc_file) values ($now, '$short_name', '$name', '$description', '$doc_file')")) {
|
2007-10-30 22:31:13 +00:00
|
|
|
echo "all done\n";
|
|
|
|
} else {
|
|
|
|
echo "database error\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|