Bonjour à tous ,
voilà je souhaite afficher des données , sous cette forme (après avoir fait var_dump($data)
bon la quantite ou autre on pourra le mettre dans detail !!
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 array 'rows' => array 0 => object(stdClass)[21] public 'id' => string '75' (length=2) public 'nom' => string 'razily' (length=6) public 'prix' => string '125000.00' (length=9) public 'nom_marques' => string 'Nike' (length=4) public 'nom_path' => string '6b4dafdbc9575290fdf007042f7f1737.jpg' (length=36) public 'quantite' => string '12' (length=2) public 'semelle_interieure' => string '0' (length=1) public 'libelle_fermeture' => string 'A enfiler' (length=9) public 'libelle_style' => string 'Bottes et Boots' (length=15) public 'libelle_talon' => string 'plat' (length=4) public 'libelle_doublure' => string 'textile' (length=7) public 'libelle_semelle' => string 'synthétique' (length=12) public 'libelle_dessus' => string 'cuir' (length=4) 1 => object(stdClass)[22] public 'id' => string '74' (length=2) public 'nom' => string 'garamatr' (length=8) public 'prix' => string '125600.00' (length=9) public 'nom_marques' => string 'Nike' (length=4) public 'nom_path' => string '65dd38f022765a95b0f9d6ecb0a56415.jpg' (length=36) public 'quantite' => string '125' (length=3) public 'semelle_interieure' => string '0' (length=1) public 'libelle_fermeture' => string 'A enfiler' (length=9) public 'libelle_style' => string 'Baskets' (length=7) public 'libelle_talon' => string 'plat' (length=4) public 'libelle_doublure' => string 'textile' (length=7) public 'libelle_semelle' => string 'synthétique' (length=12) public 'libelle_dessus' => string 'synthétique' (length=12)
mais mon problème c'est au niveau de l'affichage , je les ai inséré dans une table :
ne faites pas attention à la dernière ligne c un système de pagination
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
76
77
78
79
80
81
82
83
84
85 <body> <!-- table d'affichage des chaussures hommes --> <div class="container_12"> <div class="content"> <table border="1"> <thead> <tr> <th>Chaussure</th> <th>Homme</th> </tr> </thead> <?php if ($rows != null): foreach ($rows as $r):?> <tbody> <tr> <td>Reference</td> <td> <?php echo $r->id; ?> </td> </tr> <tr> <td>Nom</td> <td> <?php echo $r->nom; ?> </td> </tr> <tr> <td>Prix</td> <td> <?php echo $r->prix; ?> </td> </tr> <tr> <td>Marques</td> <td> <?php echo $r->nom_marques; ?> </td> </tr> <tr> <td>Photos</td> <td> <p>ici photo</p> </td> </tr> <tr> <td>Details</td> <td> <p>ici detail</p> </td> </tr> </tbody> </table> <?php endforeach; endif; ?> <?php echo $this->pagination->create_links();?> <!-- fin affichage chaussure homme --> </div> </div> </body>
mais le problème c'est que j'arrive à afficher correctement juste la première donnée mais pour la suite çà devient de ligne en ligne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 <?php echo $this->pagination->create_links();?>
comme çà
est ce que vous savez quel est le problème ??
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 Chaussure Homme Reference 75 Nom razily Prix 125000.00 Marques Nike Photos ici photo Details ici detail Reference 74 Nom garamatr Prix 125600.00 Marques Nike Photos ici photo Details ici detail Reference 67 Nom knickers Prix 125000.00 Marques Nike Photos ici photo Details ici detail Reference 65 Nom rambo Prix 125000.00 Marques Nike Photos ici photo Details ici detail
merci
Partager