Tout d'abord je tien a vous signaler que je suis dislecsique et donc très très mauvais en ortho. Bref
Voila j'ai un menu avec les lien suivant
<div id="menu">
<ul>
<li><a href="index.php">Accueil</a></li>
<li><a href="coaching.php">Coaching</a></li>
<li><a href="formation.php">Formation</a></li>
<li><a href="accompagenment.php">Accompagnement</a></li>
<li><a href="audit.php">Audit</a></li>
<li><a href="contact2.php">Contact</a></li>
</ul>
</div>
et dans le index je vais chercher la table 1 coaching table 1 ect.
Et se que j'aimerai c'est que le menu me donne :
<div id="menu">
<ul>
<li><a href="index.php?page=????????">Accueil</a></li> \\ va chercher la table 1
<li><a href="index.php?page=????????">Coaching</a></li> \\ va chercher la table 2
<li><a href="index.php?page=????????">Formation</a></li> \\ va chercher la table 3 etc....
<li><a href="index.php?page=????????">Accompagnement</a></li>
<li><a href="index.php?page=????????">Audit</a></li>
<li><a href=index.php?page=????????">Contact</a></li>
</ul>
</div>
voici index.php
<?php require_once('Connections/dbc.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($dbname, $link);
$query_Recordset1 = "SELECT acceuilID, Titre1, article1, titre2, article2 FROM table_motiv_acceuil ORDER BY acceuilID DESC";
$Recordset1 = mysql_query($query_Recordset1, $link) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<?php require_once('header.php'); ?>
<div id="conteneur">
<?php require_once('block.php'); ?>
<div id="block4"><div id="block3"></div><div id="left_content">
<div class="h2"><?php echo $row_Recordset1['Titre1']; ?></div>
<div class="content"><?php echo $row_Recordset1['article1']; ?><br />
</div>
</div>
<div id="content">
<div class="h1"><?php echo $row_Recordset1['titre2']; ?></div>
<div class="content"><?php echo $row_Recordset1['article2']; ?><br /></div>
<br />
<div class="h1"><br />
</div></div>
</div></td><div id="block5"></div>
<div id="bloc_du_bas"></div></div>
</div><div id="bloc_du_bas2"></div></div>
</html>
<?php
mysql_free_result($Recordset1);
?>
</body>
Merci pour votre aide