欢迎访问 舍力博客(www.shuyong.net)
本段代码仅在emlog5.3.1版本下测试正常
$title = '舍力'; $sl_title = mysql_query("select title from emlog_blog where excerpt='$title' limit 1");
mysql_fetch_array($sl_title)
$is_title= MySql::getInstance()->num_rows(MySql::getInstance()->query("SELECT title FROM ".DB_PREFIX."blog where title = '".$title."' limit 1"));判断代码:
$is_title>0