• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PHP开发记录
PHP以及web前端(ajax,js,jquery等)
博客园 首页 新随笔 管理

2008年6月25日

PHP查询显示关键字为红色
摘要: 一段很简单的代码,刚刚写的时候有用,平时是用来替换空格为-的<?PHP$rep_product_id=$myrow["product_id"];if(substr_count($rep_product_id,"$keywords")>0){$rep_product_id=str_replace("$keywords","<fontcolor=red>".$keywords."</font>",$rep_product_id);}echo$rep_product 阅读全文
posted @ 2008-06-25 17:59 corange 阅读(305) 评论(0) 推荐(0)
 
DIV搜索条
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><HTML><HEAD><TITLE>搜索条</TITLE><META NAME="Generator" CONT 阅读全文
posted @ 2008-06-25 17:56 corange 阅读(114) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3