1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php require_once "inc/configure.php";
//add stone $sql = "INSERT INTO sys_clog SET content = :content, t = NOW()"; if (defined("MSSQL")) { $sql = "INSERT INTO sys_clog ( content, t ) Values ( :content, GETDATE() )"; } $sth = $dbh->prepare($sql); $q = $sth->execute( array(':content' => nl2br($_REQUEST['content']) ) ); pdo_showerror($sth, $q); /*echo $sth->getSQL( array(':content' => nl2br($_REQUEST['content']) ) . HTML_EOL;*/ // // exit; header("Location: sys_clog_index.php?msg=Saved."); print "Saved."; exit;
|