Ok so I have to do this page : http://pedago.cegepoutaouais.qc.ca/media/maube/stages2011/journaux.asp
And I have the code for the form : on my file module05.php
[php]
Classer par <SELECT NAME="Classe">
Date
Étudiant
Superviseur
en ordre
Ascendant
Descendant
[/php]
So now I have to show the informations in my database. But I don’t even know where to start… I’ve looked for hours on the internet and I can’t find what I want
I have this php code too but, I don’t even know if I’m doing the right thing…
[php]<?php
$con = mysql_connect(“localhost”,“root”,"");
mysql_select_db(“journal”, $con);
$sql = “SELECT * FROM journal”;
$result=mysql_query($sql,$con);
if (!$con)
{
die('Could not connect: ’ . mysql_error());
}
$VarClasse=$_POST[“Classe”];
// Requête permettant d’aller chercher dans la base de donnée le numéro de lot écrit dans le formulaire
$result = mysql_query(“SELECT * FROM journal WHERE journal=’” .$VarClasse."’");
// Affiche la table (html) pour y rentrer les enregistrements de la base de donnée
echo "
Date | Étudiant | Superviseur |
---|---|---|
” . $row[‘DateJournal’] . “ | ”;” . $row[‘NomEtu’] . “ | ”;” . $row[‘NomSup’] . “ | ”;
mysql_close($con);
?>
[/php]