Home > php教程 > php手册 > php灵活的参数傳递

php灵活的参数傳递

WBOY
Release: 2016-06-13 10:25:39
Original
700 people have browsed it

在做网友評注時,通常我們是結合數据庫將文章的標題顯示出來并做好連接,之后便是評注的連接,
這裡因為每一萹文章都有不同的网友評注,所以便要用到參數的傳遞使每一萹文章顯示不同的評注.

//****** 讀取數据庫數据,顯示文章標題*******
echo "";
?>

之后在Pj.php中結合數据庫將id值為$id的數据讀出,便是該文章网友的評注,$topic用來輸出此文章的標題.
當然傳遞的方式不一定要用此法,這裡只是我的一點拙見.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template