For example, if I want to output the data of a category table, the output array defines a channel page, and the output [category ID] is placed in a channel hyperlink, and then the category name is output. However, the company's [About Us] [News] are all articles, which can be put in article_channel.php [company album] with a lot of different content, I want to get the ID and put the link in xiangce_channel.php [company video] and put the id in video_chaanel.php. I will use while, and now I don't want to use while. Php
For example, if I want to output the data of a classification table, it turns out to be such a rigid output array.
// Read the master type.
$ SQL _0 = "select * from category where category_parent_id = 0 ";
$ Query_0 = mysql_query ($ SQL _0 );
While ($ rs_0 = mysql_fetch_array ($ query_0 ))
{
?>
">
}
?>
Define a channel page, and output the Category ID to the channel hyperlink, and then output the category name.
However, the company's [About Us] [news and trends] are all articles, which can be placed in article_channel.php.
[Company album] a lot of content is different. I want to get the ID and put the link in xiangce_channel.php.
Company video: place the id in video_chaanel.php
I will use while, and now I don't want to use while.