require_once "DbSimple/Generic.php";
// Устанавливаем соединение.
$DB = DbSimple_Generic::connect("mysql://Логин:Пароль@Хост/База");
// Вот так выглядит запрос
$date = date("Y-m-d H:i:s");
$translit = GotoTranslit($nazvanie);
$DB->query('INSERT INTO `dke_post` (`id`,
`autor`,
`date`,
`short_story`,
`full_story`,
`xfields`,
`title`,
`descr`,
`keywords`,
`category`,
`alt_name`,
`comm_num`,
`allow_comm`,
`allow_main`,
`allow_rate`,
`approve`,
`fixed`,
`rating`,
`allow_br`,
`vote_num`,
`news_read`,
`votes`,
`access`,
`symbol`,
`flag`,
`editdate`,
`editor`,
`reason`,
`view_edit`,
`tags`,
`metatitle`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',
NULL, 'dll', $date, $krat, $full, '', $nazvanie, '', '', $categor, $translit, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, '', '', 1, '', '', '', 0, '', '');
|