bonjour a tous
j’essaie de créer une page pour vérifier le contenue d'une page avant de la diffuser.
je prends les informations sur 3 tables. la récupération se passe bien (aucun message d'erreur)
cependant il ne m'affiche pas a partir de photo1. je vois photo0, titre0 et rien derrière.
Est ce que la base de données peut limité le nombre de requête ?
car même un echo sur photo1 juste pour voir la valeur ne donne rien
d'avance merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 
<?php 
require('connect.php');
mb_http_output("utf-8");
//recuperation de l'id 
$id = $_GET['log'];
 
//recuperation des données
 
$req = $bdd->prepare('SELECT * FROM creation,avatar_upload,upload WHERE id = \''.$id.'\' AND id = upload.compte AND upload.compte = avatar_upload.compte');
$req->execute(array($_GET['mail_createur'],$_GET['nom'],$_GET['prenom'],$_GET['nom_f'],$_GET['surnom'],$_GET['ville'],$_GET['anno_n'],$_GET['anno_d'],$_GET['textsaisie'],$_GET['signature'],$_GET['avatar'],$_GET['titre0'],$_GET['photo0'],$_GET['titre1'],$_GET['photo1'],$_GET['titre2'],$_GET['photo2'],$_GET['titre3'],$_GET['photo3'],$_GET['titre4'],$_GET['photo4'],$_GET['titre5'],$_GET['photo5'],$_GET['titre6'],$_GET['photo6'],$_GET['titre7'],$_GET['photo7'],$_GET['titre8'],$_GET['photo8'],$_GET['titre9'],$_GET['photo9'],$_GET['titre10'],$_GET['photo10'],$_GET['titre11'],$_GET['photo11'],$_GET['titre12'],$_GET['photo12'],$_GET['titre13'],$_GET['photo13'],$_GET['titre14'],$_GET['photo14'],$_GET['titre15'],$_GET['photo15'],$_GET['titre16'],$_GET['photo16'],$_GET['titre17'],$_GET['photo17'],$_GET['titre18'],$_GET['photo18'],$_GET['titre19'],$_GET['photo19']));
$donnees = $req->fetch();
?>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
 <link rel="stylesheet" href="style.css" />
 <link rel="shortcut icon" href="images/logo.ico" type="image/x-icon" />
 </head>
<body id="validation">
<header>
<div id="titre_principal">
<img src="images/titre.png" alt="titre" id="titre"/>
</div>
</header> 
 
<p> <a id="gauche">Nom :  <? echo $donnees['nom'] ?> </a>    <a id="droite"> Nom 2
<p> <a id="gauche">Prenom :  <? echo $donnees['prenom'] ?>   </a>    <a id="droite">pseudo :  <? echo $donnees['surnom'] ?></a></p>
 
<p> <a id="gauche">Ville :  <? echo $donnees['ville'] ?>   </a>    <a id="droite">pays :  <? echo $donnees['pays'] ?></a></p>
 
<p>Dates :  <? echo $donnees['anno_n'] ?> -  <? echo $donnees['anno_d'] ?></p>
 
<p>Texte : <? echo $donnees['textsaisie'] ?></p>
 
<p>Signature : <? echo $donnees['signature'] ?></p>
 
<img src="photos/mini/<?php echo $donnees['avatar']?>" />
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo0']?>" />titre : <? echo $donnees['titre0'] ?></a>    
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo1']?>" />titre : <? echo $donnees['titre1'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo2']?>" />titre : <? echo $donnees['titre2'] ?></a>    
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo3']?>" />titre : <? echo $donnees['titre3'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo4']?>" />titre : <? echo $donnees['titre4'] ?></a>    
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo5']?>" />titre : <? echo $donnees['titre5'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo6']?>" />titre : <? echo $donnees['titre6'] ?></a>   
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo7']?>" />titre : <? echo $donnees['titre7'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo8']?>" />titre : <? echo $donnees['titre8'] ?></a> 
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo9']?>" />titre : <? echo $donnees['titre9'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo10']?>" />titre : <? echo $donnees['titre10'] ?></a> 
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo11']?>" />titre : <? echo $donnees['titre11'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo12']?>" />titre : <? echo $donnees['titre12'] ?></a> 
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo13']?>" />titre : <? echo $donnees['titre13'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo14']?>" />titre : <? echo $donnees['titre14'] ?></a> 
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo15']?>" />titre : <? echo $donnees['titre15'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo16']?>" />titre : <? echo $donnees['titre16'] ?></a> 
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo17']?>" />titre : <? echo $donnees['titre17'] ?></a></p>
 
<p> <a id="gauche"><img src="photos/mini/<?php echo $donnees['photo18']?>" />titre : <? echo $donnees['titre18'] ?></a>  
    <a id="droite"><img src="photos/mini/<?php echo $donnees['photo19']?>" />titre : <? echo $donnees['titre19'] ?></a></p>
 
 
</body>
</html>