本文整理匯總了PHP中Update::parse方法的典型用法代碼示例。如果您正苦於以下問題:PHP Update::parse方法的具體用法?PHP Update::parse怎麽用?PHP Update::parse使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Update
的用法示例。
在下文中一共展示了Update::parse方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ol_search_open_learn_cron
function ol_search_open_learn_cron()
{
require 'update_cron.class.php';
//$db_handle = mysql_connect(DB_HOST.":".DB_PORT, DB_USER, DB_PASSWORD);
//$db_found = mysql_select_db(DB_NAME, $db_handle);
global $db;
$db_handle = $db;
//Create object of update class which is used for updating database
$obj = new Update();
$qry = "SELECT * FROM " . TABLE_PREFIX . "config WHERE name='ol_last_updation'";
$r1 = mysql_query($qry, $db_handle);
$res1 = mysql_fetch_assoc($r1);
$qry = "SELECT * FROM " . TABLE_PREFIX . "config WHERE name='ol_url'";
$r2 = mysql_query($qry, $db_handle);
$res2 = mysql_fetch_assoc($r2);
$qry = "SELECT * FROM " . TABLE_PREFIX . "config WHERE name='ol_base_url'";
$r3 = mysql_query($qry, $db_handle);
$res3 = mysql_fetch_assoc($r3);
$obj->parse($res1['value'], $res2['value'], $db_handle, TABLE_PREFIX, $res3['value']);
}