Annexe :
Script PHP de quelque pages :
Page d’authentification :
<?php die();
include("[Link]"); }
?> Else
<?php {
mysql_connect("localhost", "root", "");// echo " Votre pseudo et ou votre mot de passe
Connexion à MySQL est incorrect";
mysql_select_db("guideb"); // Sélection de la base ?>
guideb */
<a href = "depo_offre.php">Reessayez en
$reponse = mysql_query("select login, passw from cliquant ici</a>
compte where login ='".$_POST['pseu']."'&& passw
= '".$_POST['mpass']."' ") or die(mysql_error()); // <?php
Requête SQL
}
$donnees = mysql_fetch_array($reponse);
mysql_close()
if ( isset ($donnees['login'])&&
?>
isset($donnees['passw']))
</body>
{
</html
header("location:saisie_offre.php");
Page de consultation d’écoles privées autorisées et reconnues par l’Etat du Bénin:
<?php {
include("[Link]"); mysql_connect("localhost", "root", ""); //
Connexion à MySQL
?>
mysql_select_db("guideb"); // Sélection de la
<p><font color = "blue"><u><h2 align base coursphp
="center">Liste des écoles relativement à vos
choix</h2></u></font></p> $reponse = mysql_query("SELECT libe, villee,
qtier, Rue, codniv from ecole
<table border = 3>
where villee = '".$_POST['vil']."' and qtier = '".
<?php $_POST['kt']."' and codniv ='".$_POST['nivo']."' ")
or die(mysql_error()); // Requête SQL
if(isset($_POST['nivo']))
if ($reponse) }
{ else
?> {
<th><font color = "green" size = "4">Libelle des echo "il n'existe pas encore d'école pour vos
écoles</font></th> choix";
<th><font color = "green" size = "4">Rue des }
écoles</font></th>
mysql_close();
<?php
}
WHILE($donnees =
mysql_fetch_array($reponse)) else
{ {
?> ?>
<tr> <h3>Veuillez choisir d'abord le niveau
d'enseignement</h3><strong><a href=
<td><strong> <?php echo "ecole_autorisee.php">Cliquer ici pour
$donnees['libe']; ?></strong> </td> réessayer</a></strong>
<td><strong> <?php echo <?php
$donnees['Rue']; ?></strong> </td>
}
</tr>
?>
<?php
</body>
}
</html>
Page de consultation d’informations liées aux filières selon la série entrée
<?php <th><font color = "green" size = "4">Libellé de la
filière</font></th>
include("[Link]");
<th><font color = "green" size =
?> "4">Définition et Exigences</font></th>
<p><font color = "blue"><u><h2 align <th><font color = "green" size =
="center">Liste des filières</h2></u></font></p> "4">Débouchés</font></th>
</tr>
<table border="3" align = "center">
<?php
<tr>
mysql_connect("localhost", "root", ""); //
<th><font color = "green" size = "4">Code Connexion à MySQL
filière</font></th>
mysql_select_db("guideb"); // Sélection de la <td><strong><?php
base guideb echo($donnees['debouche']);?></strong> </td>
$reponse = mysql_query("SELECT codfil,
comentfil, libfil, debouche from filiere where </tr>
codserie ='".$_REQUEST['serie']."' "); // Requête
SQL <?php
// Avec cette boucle, on liste les differentes séries }
existantes
mysql_close(); // Déconnexion de MySQL
while ($donnees = mysql_fetch_array($reponse) )
?>
{
</select>
?>
<a href = "orienter_filiere.php"> Pour vous orienter
<tr> vers la filière adaptée cliquer ici</a>
<td><strong><?php </form>
echo($donnees['codfil']);?></strong> </td>
</body>
</html>
<td><strong><?php
echo($donnees['libfil']);?></strong> </td>
<td><strong><?php echo($donnees['comentfil']);?
></strong> </td>
Page de création de compte pour les entreprises:
<?php <?php
include("[Link]"); }
?> else
<?php {
if ($_POST['pseudo'] == "" or $_POST['pass'] // On utilise les fonctions PHP
== "" or $_POST['denom'] == "" or $_POST['rcm'] mysql_real_escape_string et htmlspecialchars pour
== "" or $_POST['poss'] == "") // Si on a quelque la sécurité
chose à enregistrer
$pseudo =
{ mysql_real_escape_string(htmlspecialchars($_POS
T['pseudo']));
?>
$pass =
vous n'avez pas renseigner tous les mysql_real_escape_string(htmlspecialchars($_POS
champs<a href= "creer_compte.php">Cliquer ici T['pass']));
pour reprendre la saisie</a>
$denom = {
mysql_real_escape_string(htmlspecialchars($_POS
T['denom'])); if ($pass !== $poss)
$rcm = {
mysql_real_escape_string(htmlspecialchars($_POS
?>
T['rcm']));
<strong>Erreur dans la confirmation de
$poss =
votre mot de passe!!! Pour confirmer saisir la
mysql_real_escape_string(htmlspecialchars($_POS
même chose que le mot de passe:</strong>
T['poss']));
<a href = "creer_compte.php"><font
color = "red">Reessayez en cliquant ici</font></a>
} <?php
mysql_connect("localhost", "root", }
""); // Connexion à MySQL
else
mysql_select_db("guideb"); // Sélection
de la base guideb */ {
mysql_query("insert into
$reponse = mysql_query("select deno, compte values('', '$pseudo', '$pass', '$denom',
rccma from compte where deno = '".$denom."' '$rcm') ") or die(mysql_error());// Création du
and rccma = '".$rcm."'")or die(mysql_error()); compte
?>
if($donnees =
mysql_fetch_array($reponse)) <strong>Veuillez mémoriser
vos paramètres de connexion suivants: votre
pseudo est:<font size = "4" color = "red">
{ <?php echo $pseudo;?></font> et votre mot de
passe est:<font size = "4" color = "red"> <?php
echo "Un compte existe déjà echo $pass;?></font>
pour vous";
<?php
}
}
else
}
{
else
$rep = mysql_query("select rccm, nomese
from controle where rccm = '".$rcm."' and nomese {
= '".$denom."'")or die(mysql_error());
?>
$don = mysql_fetch_array($rep);
<strong>Erreur:Vous avez mal saisit votre
} numéro RCCM et ou votre
Dénomination!!!</strong>
if ( isset ($don['rccm']) &&
isset($don['nomese'])) <a href = "creer_compte.php"><font
color = "red">Reessayez en cliquant ici</font></a>
<?php </body>
mysql_close(); </html>
?>
Page de consultation des offres d’emploi en fonction de la qualification entrée
<?php mysql_connect("localhost", "root", ""); //
Connexion à MySQL
include("[Link]");
mysql_select_db("guideb"); // Sélection de la
?> base guideb
<p><font color = "blue"><u><h2 align $reponse = mysql_query("SELECT qualification,
="center">Liste des offres d'emploi relatives à niveau, poste, tache,denomese, siege, adrweb,
votre qualification</h2></u></font></p> dateannonce, datelimite
<table border="5"> from offre, competence
<tr> where qualification ='".$_REQUEST['qualif']."' and
[Link] = [Link]"); // Requête
<th><font color = "green" size =
SQL
"4">Qualification</font></th>
while ($donnees = mysql_fetch_array($reponse) )
<th><font color = "green" size =
"4">Niveau</font></th> {
<th><font color = "green" size = ?>
"4">Poste</font></th>
<tr>
<th><font color = "green" size =
"4">Taches</font></th> <td><strong> <?php echo
($donnees['qualification']);?></strong> </td>
<th><font color = "green" size =
"4">denomination de l'Entreprise</font></th>
<td> <strong><?php echo ($donnees['niveau']);?
<th><font color = "green" size = "4">siege ></strong> </td>
de l'Entreprise</font></th>
<td> <strong><?php echo ($donnees['poste']);?
<th><font color = "green" size = ></strong> </td>
"4">adresse web de l'Entreprise</font></th>
<td> <strong><?php echo ($donnees['tache']);?
<th><font color = "green" size = "4">date ></strong> </td>
Annonce</font></th>
<td> <strong><?php echo
<th><font color = "green" size = "4">date ($donnees['denomese']);?></strong> </td>
limite</font></th>
<td> <strong><?php echo ($donnees['siege']);?
</tr> ></strong> </td>
<?php <td> <strong><?php echo
($donnees['adrweb']);?></strong> </td>
<td> <strong><?php echo }
($donnees['dateannonce']);?></strong> </td>
mysql_close(); // Déconnexion de MySQL
<td> <strong><?php echo
($donnees['datelimite']);?></strong> </td> ?>
</select>
</tr>
</form>
<?php
</body>
</html>