Posted by Hugh Janus on 11/30/21 11:49
Something like this maybe??
<---START OF CODE--->
<html>
<head>
<title>TITLE HERE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"><div align="center"><a
href="?link=1">Link1</a></div></td>
<td><div align="center"><a href="?link=2">Link2</a></div></td>
<td><div align="center"><a href="?link=3">Link3</a></div></td>
<td><div align="center"><a href="?link=4">Link4</a></div></td>
</tr>
</table>
<br>
<?
if($link=="1") {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>LINK 1 DETAILS HERE</td>
</tr>
</table>
<? } ?>
<p>
<?
if($link=="2") {
?>
</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>LINK 2 DETAILS HERE</td>
</tr>
</table>
<? } ?>
<p>
<?
if($link=="3") {
?>
</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>LINK 3 DETAILS HERE</td>
</tr>
</table>
<? } ?>
<p>
<?
if($link=="4") {
?>
</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>LINK 4 DETAILS HERE</td>
</tr>
</table>
<? } ?>
</body>
</html>
<---END OF CODE--->
You can also easily grab things from database by going
<?
if($link=="1") {
// DATABASE QUERY
$recall=" SELECT * FROM table WHERE something = '" . $something . "' ORDER
BY something";
$result= mysql_query($recall);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>LINK 1 DETAILS HERE<br>
DATABASE QUERY: <? $result['something']; ?></td>
</tr>
</table>
<? } ?>
<arteezan@gmail.com> wrote in message
news:1149473110.878253.241160@u72g2000cwu.googlegroups.com...
> Mabuhay! I'm new in PHP and i want to create a single PHP page where
> the links are linked to contents within that single page. can anyone
> please help me with this? thanks in advance to anyone who is willing to
> help!
>
Navigation:
[Reply to this message]
|