如果我有一個名爲file.php
的文件,並且想要在其中顯示3個不同的內容。你會經常file.php
和其他2將file.php?c=1
file.php?c=2
頁面內的基本php代碼
我該怎麼做呢?
例
<html>
<head>
...........
<body>
something goes here 1 <show only if "link.com/file.php?c=1 or file.php"
something goes here 2 <show only if "link.com/file.php?c=2
something goes here 3 <show only if "link.com/file.php?c=3
</body>
</html>
'if($ _GET ['c'] == 1)...' – JJJ
請澄清你的要求 –