A voir également:
- Pb de variable dynamique
- Tableau croisé dynamique - Guide
- Exemple tableau croisé dynamique télécharger - Télécharger - Tableur
- Liste déroulante dynamique excel - Guide
- Sommaire dynamique word - Guide
- Le nom du champ de tableau croisé dynamique n'est pas valide - Forum Excel
3 réponses
Quelle est l'architecture de tes tables ?
.::: "A trop vouloir feindre de faire fi, on finit
par faire fi de vouloir feindre." :::.
.::: "A trop vouloir feindre de faire fi, on finit
par faire fi de vouloir feindre." :::.
Désolé d'avoir un peu de mal a vous suivre mais je debute...
je vous montre mon code
page de selection des films:
<html>
<head>
<title>Liste des films</title>
</head>
<body>
<font face="tahoma">
<?
$host="localhost";
$user="**";
$pass="****";
$bdd="filmsxp";
$connect=mysql_connect("$host","$user","$pass");
mysql_select_db($bdd,$connect) or die("erreur de connexion à la base de données");
if ($connect){
//connexion reussie
$query="SELECT no,titre from film where titre like='a%'";
$result= mysql_db_query($bdd, $query, $connect) or die(mysql_error());
echo'<p><table border=1 bordercolordark="black" bordercolorlight="black" border rules=rows cellspacing="10" width="75%" >';
echo"<tr><th align=left><FONT size='2' color='black' face='Verdana'>no</font></th>
<th align=left><FONT size='2' color='black' face='Verdana'>Titre</font></th>
<th align=left><FONT size='2' color='black' face='Verdana'>Zoom</font></th></font></tr>";
while($row = mysql_fetch_row($result)){
$id= 'no';
echo "<TR><TD><FONT size='2' color='black' face='Verdana'>".$row[1]."</font></TD>
<TD><FONT size='2' color='black' face='Verdana'>".$row[2]."</font></TD>
<TD><a href='profil_emp.php?id=".no."'><img src='loupe.gif' border=0></a></TD></TR>";
}
echo"</table><p>";
}
else
echo"problème à la connexion<br>";
mysql_close($connect);
?>
</body>
</html>
et ma page ou il ya toutes les infos du film choisi:
<html>
<body>
<?
$hote_mysql="localhost";
$user_mysql="**";
$passwd_mysql="*";
$base_mysql="filmxp";
$id=$_GET['no'];
$link=mysql_connect("$hote_mysql","$user_mysql","$passwd_mysql") or die(mysql_error());
mysql_select_db($base_mysql,$link) or die("erreur de connexion à la base de données");
$req_selection= "select * from film where id='no'";
$sql_selection= mysql_db_query($base_mysql, $req_selection, $link) or die(mysql_error());
echo '<p><table border=1 width="75%">';
echo '<TR><TH>No</TH><TH>Titre</TH><TH>NbEntrée</TH><TH>Date Sortie</TH></TR>';
while($row = mysql_fetch_row($sql_selection))
{
echo "<TR><TD>".$row[1]."</TD><TD>".$row[2]."</TD><TD>".$row[3]."</TD><TD>".$row[4]."</TD><TD>".$row[5]."</TD><TD>".$row[6]."</TD><TD>".$row[7]."</TD><TR>";
}
echo "</table>";
mysql_close();
?>
</html>
OU est mon erreur svp!?!
Merci
je vous montre mon code
page de selection des films:
<html>
<head>
<title>Liste des films</title>
</head>
<body>
<font face="tahoma">
<?
$host="localhost";
$user="**";
$pass="****";
$bdd="filmsxp";
$connect=mysql_connect("$host","$user","$pass");
mysql_select_db($bdd,$connect) or die("erreur de connexion à la base de données");
if ($connect){
//connexion reussie
$query="SELECT no,titre from film where titre like='a%'";
$result= mysql_db_query($bdd, $query, $connect) or die(mysql_error());
echo'<p><table border=1 bordercolordark="black" bordercolorlight="black" border rules=rows cellspacing="10" width="75%" >';
echo"<tr><th align=left><FONT size='2' color='black' face='Verdana'>no</font></th>
<th align=left><FONT size='2' color='black' face='Verdana'>Titre</font></th>
<th align=left><FONT size='2' color='black' face='Verdana'>Zoom</font></th></font></tr>";
while($row = mysql_fetch_row($result)){
$id= 'no';
echo "<TR><TD><FONT size='2' color='black' face='Verdana'>".$row[1]."</font></TD>
<TD><FONT size='2' color='black' face='Verdana'>".$row[2]."</font></TD>
<TD><a href='profil_emp.php?id=".no."'><img src='loupe.gif' border=0></a></TD></TR>";
}
echo"</table><p>";
}
else
echo"problème à la connexion<br>";
mysql_close($connect);
?>
</body>
</html>
et ma page ou il ya toutes les infos du film choisi:
<html>
<body>
<?
$hote_mysql="localhost";
$user_mysql="**";
$passwd_mysql="*";
$base_mysql="filmxp";
$id=$_GET['no'];
$link=mysql_connect("$hote_mysql","$user_mysql","$passwd_mysql") or die(mysql_error());
mysql_select_db($base_mysql,$link) or die("erreur de connexion à la base de données");
$req_selection= "select * from film where id='no'";
$sql_selection= mysql_db_query($base_mysql, $req_selection, $link) or die(mysql_error());
echo '<p><table border=1 width="75%">';
echo '<TR><TH>No</TH><TH>Titre</TH><TH>NbEntrée</TH><TH>Date Sortie</TH></TR>';
while($row = mysql_fetch_row($sql_selection))
{
echo "<TR><TD>".$row[1]."</TD><TD>".$row[2]."</TD><TD>".$row[3]."</TD><TD>".$row[4]."</TD><TD>".$row[5]."</TD><TD>".$row[6]."</TD><TD>".$row[7]."</TD><TR>";
}
echo "</table>";
mysql_close();
?>
</html>
OU est mon erreur svp!?!
Merci