Phpli connects to a table and allows different users to cycle out the php file & nbsp; $ SQL & quot; SELECT * FROM 'pp _ vod 'wherevod _ cid8orderbyvod_addtimeLIMIT0, 12 & quot ;; $ querymysql_query ($ SQL); & nbsp; $ I phpli connects to a table, so that different parties can loop through it.
Php file
$ SQL = "SELECT * FROM 'pp _ vod 'where vod_cid = 8 order by vod_addtime LIMIT 0, 12 ";
$ Query = mysql_query ($ SQL );
$ I = mysql_num_rows ($ query );
$ J = 0;
While ($ a = mysql_fetch_array ($ query )){
If ($ j <= $ I ){
$ Id [$ j] = $ a ['vod _ id'];
$ Area [$ j] = $ a ['vod _ region'];
$ Hits [$ j] = $ a ['vod _ hits '];
$ Title [$ j] = $ a ['vod _ name'];
$ Author [$ j] = $ a ['vod _ actor '];
$ Authoreml [$ j] = $ a ['authoryml'];
$ Putdate [$ j] = $ a ['vod _ addtime'];
$ Pic [$ j] = $ a ['vod _ pic '];
$ Cat [$ j] = $ a ['vod _ Cid'];
$ Content [$ j] = $ a ['vod _ content'];
$ J ++;
}
}
$ T-> set_file ("main", "3333.htm ");
$ T-> set_block ("main", "row", "rows ");
For ($ j = 0; $ j <12; $ j ++ ){
$ T-> set_var (array ("authoreml" => $ authoreml [$ j],
"Author" => $ author [$ j],
"Id" => $ id [$ j],
"Title" => $ title [$ j],
"Putdate" => $ putdate [$ j],
"Pic" => $ pic [$ j]);
$ T-> parse ("rows", "row", ture );
}
$ T-> parse ("out", "main", true );
/*
This method has three parameters. Currently, we only use the first two. The first parameter is the name to be output, and the second parameter is the name of the previously defined template file.
*/
// Output
$ T-> p ("out ");
Template File
- {Title} complete set {putdate}
This is generated by adding a time loop to the server. what should I do if I want to enable the server to click the loop ?? Too many files are written one by one.
------ Solution --------------------
It is estimated that no one has used such an old template engine.
However, this is not the key to the problem.
The key is: you cannot understand your needs.
This is generated by adding a time loop to the server. what should I do if I want to enable the server to click the loop ?? Too many files are written one by one.