本文整理汇总了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);
}