Add pagination and PHPcode & lt ;? Phpecho '& lt; formaction = & quot; # & quot; method = & quot; get & quot; & gt;'; echo '& lt; inputtype = & quot; based on this, tex adds pagination and addition
PHP code
'; Echo'IdNamePackage optionsAdd'; While ($ row = mysql_fetch_array ($ query) {echo''. $ Row ['products _ id'].''; Echo''. $ Row ['products _ name'].'1234';} Echo'';}?>
The database is directly connected. you do not need to write the database link code. Therefore, the search results are displayed on pages, in addition, the subsequent addition function can also add the queried data to the database.
The added effect is as follows:
Table name: Popularity
Products_id Popularity_id (value in plan options)
97 2
1008 1
40 3
------ Solution --------------------
First, you can download a paging class.
------ Solution --------------------
Http://www.baidu.com? Wd = php + % B7 % D6 % D2 % B3 % C0 % E0 & rsv_bp = 0 & rsv_spt = 3 & inputT = 5832