本文整理匯總了PHP中seo::get_seo_url方法的典型用法代碼示例。如果您正苦於以下問題:PHP seo::get_seo_url方法的具體用法?PHP seo::get_seo_url怎麽用?PHP seo::get_seo_url使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類seo
的用法示例。
在下文中一共展示了seo::get_seo_url方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: seo
function edit_sub_category($name, $id, $markbold, $category_id)
{
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/seo.class.php";
$seo_class = new seo();
$sql = "update `" . $this->table . "` set name='" . $this->mysql->magicquotes($name) . "',markbold='" . $this->mysql->magicquotes($markbold) . "',category_id='" . $this->mysql->magicquotes($category_id) . "',seo_url='" . $this->mysql->magicquotes($seo_class->get_seo_url($name)) . "' where id='" . $id . "'";
$result = $this->mysql->query($sql);
}
示例2: mysql
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/mysql.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/seo.class.php";
$mysql = new mysql();
$seo = new seo();
$sql = "select * from category";
$data = $mysql->getdata($sql);
foreach ($data as $row) {
$sql = "update category set seo_url='" . $seo->get_seo_url($row['sub_cat']) . "' where id='" . $row['id'] . "'";
echo $row['id'] . "<br>";
$mysql->query($sql);
}
示例3: seo
<?php
include "mysql.class.php";
include "seo.class.php";
$seo = new seo();
$mysql = new mysql();
$sql = "select * from rentorhire_category ";
$data = $mysql->getdata($sql);
foreach ($data as $value) {
$sql_update = "update rentorhire_category set seo_url='" . $seo->get_seo_url($value['name']) . "' where id='" . $value['id'] . "'";
echo $sql_update . "<br />";
$mysql->query($sql_update);
}