IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

stockage de donnée


Sujet :

Langage PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    111
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2007
    Messages : 111
    Par défaut stockage de donnée
    Bonjour a tous,

    je suis débutante en php

    en listant les commandes j arrive pas a voir no l adresse de facturation ni l'adresse de livraison!!!

    voici le code de la page
    Code php : 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
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
     
    <table border="0" width="100%" cellpadding="0" cellspacing="1">
    	<tr>
    		<td colspan="5" class="entete">Détail d'une commande</td>
    	</tr>
    	<tr>
    		<td class="normal">Numéro de la commande : </td>
    		<td class="normal"><?php echo $id?></td>
    	</tr>
    	<tr>
    		<td class="normal">Pass&eacute;e le :</td>
    		<td class="normal"><?php echo return_date_fr($commande->o_timestamp) ?></td>
    	</tr>
    	<tr>
    		<td class="normal">Par :</td>
    		<td class="normal"><a class="normal" href="utilisateurs.php?mode=modif&id_utilisateur=<?php echo $commande->id_utilisateur ?>"><?php echo $commande->email ?></a></td>
    	</tr>
     
    	<tr>
    		<td class="normal">Montant :</td>
    		<td class="normal"><b><?php echo fprix($commande->montant)?> € T.T.C</b></td>
    	</tr>
    	<tr>
    		<td class="normal"><i>dont Frais de port :<i></td>
    		<td class="normal"><i><?php echo fprix($commande->cout_transport)?> € T.T.C<i></td>
    	</tr>
     
    	<tr valign="top">
    		<td class="normal">Adresse de facturation :</td>
    		<td colspan="4" class="normal"><?php echo nl2br($commande->client_info1)?></td>
    	</tr>
    	<tr valign="top">
    		<td class="normal">Adresse de livraison :</td>
    		<td colspan="4" class="normal"><?php echo nl2br($commande->client_info2)?></td>
    	</tr>
    	<tr valign="top">
    		<td class="normal">Modalité de paiement :</td>
    		<td colspan="4" class="normal"><?php echo $commande->paiement?></td>
    	</tr>
    	<tr valign="top">
    		<td class="normal">Modalité d'expédition :</td>
    		<td colspan="4" class="normal"><?php echo $commande->transport?></td>
    	</tr>
    	<form method="post" name="etat" action="<?php echo  $_SERVER['PHP_SELF']?>">
    	<input type="hidden" name="mode" value="update">
    	<input type="hidden" name="commandeid" value="<?php echo  $commande->id?>">
    	<tr valign="top">
    		<td class="normal">Etat de la commande :</td>
    		<td colspan="4" class="normal">
    		<select name="statut_details" class="formulaire1">
    			<option value="attente de r&egrave;glement" <?php if   ($commande->statut_details == "attente de règlement") { echo " selected";}?>>attente de r&egrave;glement</option>
    			<option value="r&eacute;gl&eacute;e" <?php if   ($commande->statut_details == "réglée") { echo " selected";}?>>r&eacute;gl&eacute;e (la facture devient accessible dans le compte client)</option>
    			<option value="annul&eacute;e" <?php if   ($commande->statut_details == "annulée") { echo " selected";}?>>annul&eacute;e</option>
    		</select>
    		<input type="submit" value="changer le statut" class="bouton">
    		<form>
     
     
    		</td>
    	</tr>
     
    	<?php 
     
    	 if ($commande->commentaires !="") { ?>
    	<tr valign="top">
    		<td class="normal">Commentaires spécifiques :<p></p></td>
    		<td colspan="4" class="normal"><?php echo $commande->commentaires?></td>
    	</tr>
    	<?php } ?>
    	<tr>
    	<td colspan="2" height="5" align="center">&nbsp;</td>
    	</tr>
    	<tr>
    	<td colspan="2" class="normal" align="left">
    	<p><img src="<?php echo $wwwroot?>/images/view_html.gif" width="8" height="11" alt="" border="0" align="absmiddle">&nbsp;<a href="javascript:OpenWin2('<?php echo $wwwroot?>/factures/facture_html.php?id=<?php echo $id?>&timestamp=<?php echo urlencode($commande->o_timestamp)?>&mode=proforma',550,450,'bdc');" class="normal">EDITER LE BON DE COMMANDE</a></p>
    	<p><img src="<?php echo $wwwroot?>/images/view_html.gif" width="8" height="11" alt="" border="0" align="absmiddle">&nbsp;<a href="javascript:OpenWin2('<?php echo $wwwroot?>/factures/facture_html.php?id=<?php echo $id?>&timestamp=<?php echo urlencode($commande->o_timestamp)?>&mode=facture',550,450,'facture');" class="normal">EDITER UNE FACTURE</a></p></td>
    	</tr>
    	</table>
     
     
    	<table border="0" cellspacing="1" cellpadding="0" width="100%">
     
    	<tr><td height="1" bgcolor="#336699" colspan="7"><img src="<?php echo $wwwroot?>/images/blank.gif" height="1" alt="" /></td></tr>		
     
    	<tr bgcolor="#eeeeee">
    		<td colspan="7" class=label>Liste des produits commandés : </td>
    	</tr>
     
    	<tr><td height="1" bgcolor="#336699" colspan="7"><img src="<?php echo $wwwroot?>/images/blank.gif" height="1" alt="" /></td></tr>		
     
    	<tr bgcolor="#6699ff">
    		<td class="normal">Référence</td>
    		<td class="normal">Produit</td>
    		<td class="normal" align="center">Prix catalogue</td>
    		<td class="normal" align="center">Prix vendu</td>		
    		<td class="normal" align="center">Quantité</td>
    		<td colspan="2" class="normal" align="center">Total T.T.C</td>
    	</tr>
     
    	<?php 
    		if ($qid_items) {
     
    			if (mysql_num_rows($qid_items)) {
     
    				while ($prod = mysql_fetch_array($qid_items)) { ?>
    				<tr>
    					<td class="normal"><?php echo $prod['reference'] ?></a></td>
    					<td class="normal">
    					<a href="produits.php?mode=modif&id=<?php echo $prod['id']?>" class="normal"><?php echo stripslashes($prod['nom_produit'])?></a>
    					</td>
    					<td class="normal" align="center"><?php echo fprix($prod['curr_prix'])?></td>
    					<td class="normal" align="center">
     
    					<?php echo fprix($prod['purchase_prix']);?>
    					</td>
    					<td class="normal" align="center"><?php echo $prod['quantite']?></td>
    					<td class="normal" align="center">
     
    					<?php 
    					$total = $prod['purchase_prix']*$prod['quantite'];
     
    					echo fprix($total);?>
     
    					</td>
    					<td class="normal">€ T.T.C</td>
    				</tr>
    			<?php } ?>
    			</table>
    			<?php 
    			}
    		} ?>
    merci poir celui qui m aidera

    merci

  2. #2
    Membre chevronné Avatar de binouzzz19
    Profil pro
    Inscrit en
    Avril 2007
    Messages
    385
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Avril 2007
    Messages : 385
    Par défaut
    montre nous ta fonction nl2br

  3. #3
    Membre Expert
    Inscrit en
    Janvier 2005
    Messages
    2 291
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 2 291
    Par défaut
    nl2br() est une fonction de php.

    Essaie de vérifier que la valeur existe avec un isset avant de l'afficher et si elle n'existe pas affiche ERREUR a la place ou quelquechose dans ce gout la, pour t'assurer que la valeur est bien définie.

Discussions similaires

  1. [Sql] Stockage de données compressées
    Par choubiroute dans le forum Oracle
    Réponses: 5
    Dernier message: 08/03/2006, 15h46
  2. Dilemme : stockage de données en mémoire
    Par The Dark Lewis dans le forum C++Builder
    Réponses: 3
    Dernier message: 30/09/2005, 12h28
  3. Stockage de données
    Par moa378 dans le forum OpenGL
    Réponses: 16
    Dernier message: 26/05/2005, 14h34
  4. Stockage de données cartographiques en BDD
    Par Mack.51 dans le forum Décisions SGBD
    Réponses: 3
    Dernier message: 16/06/2004, 12h48
  5. Stockage de données & lecture d'un fichier texte
    Par petitours dans le forum C++Builder
    Réponses: 6
    Dernier message: 13/03/2004, 14h05

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo