2013年1月8日 星期二

XOOPS與資料庫連結相關

//替資料表加入資料庫設定的前置詞
$xoopsDB->prefix("db_table_name")

//送出查詢嚕
$result $xoopsDB->query($sqlor redirect_header('index.php', 3, mysql_error());

//取得一筆記錄
$row $xoopsDB->fetchArray($result);

//取得最後一筆 insert id
$xoopsDB->getInsertId()

沒有留言:

張貼留言