All pastes #146436 Raw Edit

Unnamed

public text v1 · immutable
#146436 ·published 2006-08-23 16:36 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 "Cephus Gregg Jr":
	/* 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 "Books":
	/* 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;
}
}
?>