All pastes #146996 Raw Edit

Mine

public text v1 · immutable
#146996 ·published 2006-08-24 01:14 UTC
rendered paste body
<li><a href="/"> Home </a> </li> 
<li><a href="Cephus Gregg Jr?id=1">Cephus Gregg Jr</a> </li> 
<li><a href="Books?id=2">Books </a> </li>
<li><a href="Tour?id=3"> Tour </a></li> 
<li><a href="Links?id=4"> Links </a></li> 
<li><a href="Contacts?id=5"> Contacts </a></li> 
<li><a href="Book Reviews?id=6"> Book Reviews </a> </li>
</ul>
</div>
</div>
<div id="content">
<img src="images/JamalHis_big.jpg" alt=""
width="630" height="953">
<?php
/* Connect to the database server */
require_once("/home/cheikh/html_Php/pgconnect.php");
if((isset($_GET['id']))) {
	$id=$_GET['id'];

switch ($id) {
	case 1:
	/* Execute the query */
	$result = @pg_query("SELECT body FROM jamal WHERE id=1");
	/* Output the query */
	while($row = pg_fetch_object($result))
		echo "$row->body <br />";
	break;
	case 2:
	/* Execute the query */
	$result = @pg_query("SELECT body FROM jamal WHERE id=2");
	/* Output the query */
	while ($row = pg_fetch_object($result))
		echo "$row->body <br />";
	break;
	case "Tour":
	break;
	default:
	echo "default";
}
}