
bjr voici mon codephp
<?php
$domaine = $_GET['domaine'];
$titre = $_GET['titre'];
$format=$_GET['format'];
echo "hello ";
echo $domaine ," ",$titre;
$con= odbc_connect ( "bd_livre", "user","" );
$q= "SELECT * FROM livres WHERE titre='$titre' AND domaine='$domaine'";
$result= odbc_do($con, $q);
if( $rc = odbc_fetch_into($result, $row) )
{ $nb=$row[5]+1;
$q= "UPDATE livres SET nb_lecture='$nb' WHERE titre='$titre' AND domaine='$domaine'";
$result= odbc_do($con, $q);
$adresse="http://127.0.0.1/biblio/livres_bibliotheque/".$domaine."/".$titre.".".$format;
header("Location: $adresse");
}
else { echo 'livre introuvable';}
?>
il m affiche
hello architecture Initiation au langage ALGOL
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\biblio\afficher_livre.php3:7) in
c:\program files\easyphp1-8\www\biblio\afficher_livre.php3 on line
22
ligne22 = header("Location: $adresse");
svp aide moi