Hi !!!
I have this page :
[code=php]
<?php
// SQL database Variables
$hostname=”sql.free.fr”;
$user=”username”;
$pass=”passwd”;
$dbase=”dbname”;
$connection = mysql_connect(“$hostname” , “$user” , “$pass”);
$db = mysql_select_db($dbase , $connection);
$getid = $_GET[‘pagetitle’];
$url = “http://enfantsdelo.free.fr/persosphp.php”;
$pagetitle = mysql_result(mysql_query(“SELECT pagetitle FROM persos WHERE PAGETITLE=’$getid'”,$connection),0);
$title = mysql_result(mysql_query(“SELECT title FROM persos WHERE PAGETITLE=’$getid'”,$connection),0);
$content = mysql_result(mysql_query(“SELECT content FROM persos WHERE PAGETITLE=’$getid'”, $connection),0);
$pageName = “$pagetitle”; ?>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<? echo “<title>Les Enfants de l’Ô – Personnages – ” .$title. “</title>”; ?>
<link href=”bookie.css” rel=”stylesheet” type=”text/css”>
<link href=”persos.css” rel=”stylesheet” type=”text/css”>
<script src=”dom-drag.js” language=”javascript” type=”text/javascript”></script>
</head>
<body>
<li><a href=”http://enfantsdelo.free.fr/persosphp.php?pagetitle=ruan” id=”ruan”>Ruan</a></li>
<li><a href=”http://enfantsdelo.free.fr/persosphp.php?pagetitle=ludmea” id=”ludmea”>Ludméa</a></li>
<?php
switch ($pageName)
{
case ludmea:
$div = “ludipix”;
break;
case ruan:
$div = “ruanpix”;
break;
}
echo “<div id=”” .$div. “” title=”” .$title. “”></div>”;?>
<!– Contenu –>
<div id=”content”>
<? echo “<h1>” .$title. ” </h1>”;?>
<? echo “<p>” .$content. “</p>”;?>
</div>
// rest of the page here, but unimportant
So, basically, the page displays information about the people (ruan and ludmea), and everything is fine. The url looks like that : [url]http://enfantsdelo.free.fr/persosphp.php?pagetitle=ruan[url]http://enfantsdelo.free.fr/persosphp.php[url]http://enfantsdelo.free.fr/persosphp.php
How can I do that ?
Thanks a lot for your help !!!!