1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?
include("config.inc.php");
mysql_connect(SERVEUR,LOGIN,PASS);
mysql_select_db(BASE);
$orderby=$_POST['lien']._id;
$select=$_POST['lien'].sst;
$requete="DELETE FROM page WHERE page_id=1";
$resultat=mysql_query($requete);
$requetes="INSERT INTO page values(1,'".$_POST['lien']."','$select','$orderby')";
$resultats=mysql_query($requetes);
$req="SELECT * FROM page ORDER BY page_id asc";
$result=mysql_query($req);
$nb=mysql_num_rows($result);
$i=0;
$j=0;
echo "il y a ".$nb." article dans le catalogue<br>";
?>
<table>
<? while ($i<$nb)
{
$data = mysql_fetch_object($result);
echo"<tr>";
echo"<td>".$data->matiere."</td>";
echo"</tr>";
$i=$i+1;
}
?>
</table> |
Partager