Home >Backend Development >PHP Tutorial > 在这基础上加入分页和添加,该怎么解决
在这基础上加入分页和添加
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <?php echo '<form action="#" method="get">'; echo '<input type="text" name="keyword" size="35">'; echo '<input type="submit" value="搜 索">'; echo ''; if(isset($_GET['keyword'])){ $_GET['keyword'] = isset($_GET['keyword']) && $_GET['keyword']!='' ? $_GET['keyword'] : ''; $sql = 'select products_id,products_name from products_description where products_name like "%'.$_GET[keyword].'%" or products_id like "%'.$_GET[keyword].'%"'; $query = mysql_query($sql); echo '
id | name | 套餐选项 | 添加 |
'.$row['products_id'].' | '; echo ''.$row['products_name'].' |