Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
982 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  probléme de mise a jour

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

probléme de mise a jour

n°1487047
diarise
Posté le 06-12-2006 à 11:20:53  profilanswer
 

bonjour j'ai développé mon site cv en php pour que je puis faire des mise à jours : j'explique j'ai créé une page admin pour prendre les nouvel donnés voici le code de la page admin

Code :
  1. <body>
  2. <div id="div">
  3. <table width="800" border="1" cellspacing="0" cellpadding="0">
  4. <form action="index.php" method="post">
  5.   <tr>
  6.     <td>galery<input name="galery" type="text" id="v" value="bientôt en ligne" onfocus="this.value=''" /></td>
  7.     <td>site1<input name="site1" type="text" id="site1" value="resto-dakar/" onfocus="this.value=''" /></td>
  8.     <td>adresse<input name="adress" type="text" id="adress" value="Parcelles Assainies Unitè 12 n 389" onfocus="this.value=''" /></td>
  9.     <td>site2<input name="site2" type="text" id="site2" value="vatou.com" onfocus="this.value=''" /></td>
  10.     <td>tel<input name="tel" type="text" id="tel" value="441 00 22" onfocus="this.value=''"/></td>
  11.   </tr>
  12.   <tr>
  13.     <td>e-mail<input name="mail" type="text" id="mail" value="daouda7626@yahoo.fr" onfocus="this.value=''" /></td>
  14.     <td>site3<input name="site3" type="text" id="site3" value="www.motospace.fr" onfocus="this.value=''" /></td>
  15.     <td>perso<input name="perso" type="text" id="perso" value="www.diarise.com" onfocus="this.value=''" /></td>
  16.     <td>valider<input name="" type="submit" value="Envoyer" /></td>
  17.   </tr></form>
  18. </table>
  19. </div>
  20. </body>
  21. </html>


le code de la page index

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <meta name="description" content="CV en ligne de Daouda DIA" />
  6. <meta name="keywords" content="site, sites, internet, création, conception, réalisation, développement, graphiste, intégration" />
  7. <meta name="robots" content="index,follow" />
  8. <title>Daouda DIA | CV en ligne</title>
  9. <link rel="stylesheet" type="text/css" media="screen" href="css.css" />
  10. </head>
  11. <body>
  12. <div id="div">
  13.  <img src="images/logo.gif" alt="cv en ligne" height="116" width="325" class="logo" />
  14.  <div id="bloc_1">
  15.   <div id="bloc_8">
  16.     <span class="bloc_3_2">Galerie </span><br />
  17.     <span class="bloc_3_1_1_1"><?
  18. $galery = $_POST['galery'];
  19. print("$galery" );
  20. ?></span><br />
  21.        
  22.    </div>
  23.   <div id="bloc_9">
  24.     <span class="bloc_3_3">Référence</span><br />
  25.           <span class="bloc_3_1_2_1">
  26. <a href="http://www.freazer.com/perso/resto-dakar/" target="_blank"><? $site1 = $_POST['site1']; print("$site1" ); ?></a>
  27. </span><br />
  28.         <span class="bloc_3_1_2_1"><a href="http://projets.africatic.com/vatou/" target="_blank">                                             <? $site2 = $_POST['site2']; print ("$site2" ); ?></a></span><br />
  29.        <span class="bloc_3_1_2_1"><a href="http://www.motospace.fr/" target="_blank">
  30.    <? $site3 = $_POST['site3']; print ("$site3" ); ?></a></span><br />
  31.    </div>
  32.  </div>
  33.  <div id="bloc_2">
  34.   <div id="bloc_8">
  35.     <span class="bloc_3_2">Coordonnées</span><br />
  36.     <span class="bloc_3_1_1">Daouda Bineta DIA</span><br />
  37.            <span class="bloc_3_1_1"><? $adress = $_POST['adress']; print("$adress" );?>
  38. </span><br />
  39.            <span class="bloc_3_1_1">Dakar Sénégal</span><br />
  40.     <span class="bloc_3_1_1"><?
  41. $tel = $_POST['tel'];
  42. print("Tèl : + 221 $tel" );
  43. ?></span><br />
  44.     <span class="bloc_3_1_1"><?
  45. $mail = $_POST['mail'];
  46. print("e-mail : $mail" );
  47. ?></span><br />
  48.     <span class="bloc_3_1_1">nationalité sénègalaise</span>
  49.    </div>
  50.    <div id="bloc_9">
  51.       <span class="bloc_3_3">Liens</span><br />
  52.           <span class="bloc_3_1_2"><a href="#">CV Format Word</a></span><br />
  53.         <span class="bloc_3_1_2"><a href="#">CV Format PDF</a></span><br />
  54.        <span class="bloc_3_1_2"><a href="#">Version Texte</a></span><br />
  55.    <span class="bloc_3_1_2"><a href="#">Version css</a></span><br />
  56.     <span class="bloc_3_1_2"><a href="#"><? $perso = $_POST['perso']; print ("site pérso :$perso" ); ?> </a></span>    </div>
  57.  </div>
  58.  <div id="bloc_3"><span class="bloc_3_1">Expérience professionnelle</span>
  59.    <p class="bloc_3"><span class="Style1">Octobre 2006, 3 mois</span><br />
  60.      Stage d&rsquo; int&eacute;gration et de maquettage
  61.      Africatic S&eacute;n&egrave;gal Web agency (formation en alternance).</p>
  62.    <p class="bloc_3"><span class="Style1">2006</span><br />
  63.   Pr&egrave;sident de la M&eacute;diatic : association mutim&egrave;dia des &egrave;tudients d&lsquo; Africatic S&eacute;n&egrave;gal  (logith&egrave;que, vid&egrave;oth&egrave;que et l&rsquo; audioth&egrave;que).</p>
  64.    <p class="bloc_3"><span class="Style1">1998 &agrave; 2000</span><br />
  65.   Agent de d&eacute;veloppement communautaire: sensibilisation sur les MST, campagne de vaccination....</p>
  66.    <p class="bloc_3"><span class="Style1">Avril-juin 2005</span><br />
  67.   Stage de formation &agrave; SENEMULTIMEDIA : Montage vid&eacute;o et animation photos sur support cd. </p>
  68.  </div>
  69.  <div id="bloc_4"><span class="bloc_3_1">Compétences</span>
  70.    <p class="bloc_3"><span class="Style2">Langages :</span>
  71.    <br />
  72.    <img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" />&nbsp;: HTML, XHTML, CSS2
  73.    <br />
  74.    <img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" />&nbsp;: PHP, MySql
  75.    <br />
  76. <img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" />&nbsp;: XML
  77. <br />
  78. <img src="images/puce.gif" alt="puce" height="8" width="8" class="img" />&nbsp;: Javascript
  79. <br />
  80. <span class="Style2">Logiciels :</span>
  81.    <br />
  82.    <img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" />&nbsp;: Dreamweaver 8,  Photoshop cs2
  83.    <br />
  84.    <img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" />&nbsp;: Illustrator cs2, MS Office
  85.    <br />
  86. <img src="images/puce.gif" alt="puce" height="8" width="8" class="img" /><img src="images/puce.gif" alt="puce" height="8" width="8" class="img" />&nbsp;: Flash 8
  87. <br />
  88. <span class="Style2">Internet :</span><br />
  89. Chaîne de production de site Internet, gestion de projets, mainetnance de site Internet.
  90. </p>
  91.  </div>
  92.  <div id="bloc_5"><span class="bloc_3_1">Formations</span>
  93.    <p class="bloc_3"><span class="Style1"><a href="http://www.africatic.com/" target="_blank">Licence multimédia (2006)</a></span><br />
  94. licence proféssionnelle en téchnologie de l'information et de la communication option communication web. </p>
  95.   
  96.  </div>
  97.  <div id="bloc_6">
  98.   <span class="bloc_3_1_3">copyright 2006 diarise</span>
  99.   <span class="bloc_3_1_2"> </span>
  100.  </div>
  101.  <div id="bloc_7">
  102.      <div id="bloc_10"><span class="bloc_3_1_3"><?
  103. //Voici les deux tableaux des jours et des mois traduits en français
  104. $nom_jour_fr = array("dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" );
  105. $mois_fr = Array("", "janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août",
  106.  "septembre", "octobre", "novembre", "décembre" );
  107. // on extrait la date du jour
  108. list($nom_jour, $jour, $mois, $annee) = explode('/', date("w/d/n/Y" ));
  109. echo $nom_jour_fr[$nom_jour].' '.$jour.' '.$mois_fr[$mois].' '.$annee;
  110. //Affichera par exemple : "date du jour en français : samedi 24 juin 2006."
  111. ?></span></div>
  112.   <div id="bloc_11"><span class="bloc_3_1_2"><?
  113. $date = gmdate("H\hi" );
  114. print("Il est $date"."gmt." );
  115. ?></span></div>
  116.  </div>
  117. </div>
  118. </body>
  119. </html>


le code css

Code :
  1. body{background-color:#e7e7e7; text-align:center; margin-top:0px}
  2. #div{width:800px; height:600px; margin: 0 auto; text-align:left}
  3. .logo{ margin-left:238px; margin-top:25px; margin-bottom:9px}
  4. #bloc_1{ width:369px; height:102px; background-color:#4e4e4e; margin-left:26px; float:left}
  5. #bloc_2{ width:369px; height:102px; background-color:#4e4e4e; margin-left:14px; float:left}
  6. #bloc_3{ width:242px; height:294px; background-color:#eed2e5; margin-left:26px; margin-top:14px; margin-right:14px; float:left}
  7. #bloc_4{ width:242px; height:294px; background-color:#e6f8d0; margin-top:14px; margin-right:14px; float:left}
  8. #bloc_5{ width:242px; height:294px; background-color:#dcebfe; margin-top:14px; margin-right:14px; float:left}
  9. #bloc_6{ width:369px; height:20px; background-color:#4e4e4e; margin-left:26px; margin-top:14px; float:left}
  10. #bloc_7{ width:369px; height:20px; background-color:#4e4e4e; margin-left:14px; margin-top:14px; float:left}
  11. #bloc_8{ float:left; width:192px; height:102px}
  12. #bloc_9{ float:right; width:157px; height:102px; text-align:right}
  13. #bloc_10{ float: left}
  14. #bloc_11{ float:right; text-align:right}
  15. .bloc_3{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#4e4e4e; margin-left:6px; line-height:12px}
  16. .bloc_3_1{ font-family:Arial, Helvetica, sans-serif; font-size:18px; font-style:normal; color:#4e4e4e; margin-left:6px;}
  17. .img{ margin-top:6px;}
  18. .Style1 {color: #ff880c}
  19. .Style1 a {color: #ff880c; text-decoration:none}
  20. .Style1 a:hover {color: #ff880c; text-decoration:underline}
  21. .Style2 {
  22. font-family: Arial, Helvetica, sans-serif;
  23. font-size: 14px;
  24. color: #4e4e4e; line-height:15px
  25. }
  26. .bloc_3_2{ font-family:Arial, Helvetica, sans-serif; font-size:18px; font-style:normal; color:#ffffff; margin-left:6px;}
  27. .bloc_3_1_1{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-left:6px; line-height:12px; height:73px; width:167px;}
  28. .bloc_3_3{ font-family:Arial, Helvetica, sans-serif; font-size:18px; font-style:normal; color:#ffffff; margin-right:6px; text-align:right; }
  29. .bloc_3_1_2{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-right:6px; line-height:12px; height:73px; width:157px; text-align:right}
  30. .bloc_3_1_2 a{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-right:6px; line-height:12px; height:73px; width:157px; text-align:right; text-decoration:none}
  31. .bloc_3_1_2 a:hover{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-right:6px; line-height:12px; height:73px; width:157px; text-align:right; text-decoration:underline}
  32. .bloc_3_1_1_1{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-left:6px; line-height:12px; height:73px; width:10px;}
  33. .bloc_3_1_2_1{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-right:6px; line-height:12px; height:73px; width:260px; text-align:right}
  34. .bloc_3_1_2_1 a{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-right:6px; line-height:12px; height:73px; width:260px; text-align:right; text-decoration:none}
  35. .bloc_3_1_2_1 a:hover{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-right:6px; line-height:12px; height:73px; width:260px; text-align:right; text-decoration:underline}
  36. .bloc_3_1_3{ font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#ffffff; margin-left:6px; line-height:12px; height:73px; width:167px;}


mon probléme est la suivante a chaque foi que je lance le site en local les donnés ne s'affiche pas que faire.
merci

mood
Publicité
Posté le 06-12-2006 à 11:20:53  profilanswer
 

n°1487070
boulax
Inserer phrase hype en anglais
Posté le 06-12-2006 à 11:40:07  profilanswer
 

va mourir


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1487078
diarise
Posté le 06-12-2006 à 11:46:12  profilanswer
 

:kaola: aprés toi

n°1487081
boulax
Inserer phrase hype en anglais
Posté le 06-12-2006 à 11:49:28  profilanswer
 

Nan je pense que pour le bien du genre humain tu devrais t'en aller d'abord.


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1487086
diarise
Posté le 06-12-2006 à 11:55:23  profilanswer
 

boulax a écrit :

Nan je pense que pour le bien du genre humain tu devrais t'en aller d'abord.


   :pfff: j'ai pas de temps a perdre ave toi

n°1487092
boulax
Inserer phrase hype en anglais
Posté le 06-12-2006 à 11:57:42  profilanswer
 

Personne n'a de temps à perdre à lire ton code non plus.


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1487840
gilou
Modérateur
Modzilla
Posté le 07-12-2006 à 11:10:20  profilanswer
 


 

boulax a écrit :

Nan je pense que pour le bien du genre humain tu devrais t'en aller d'abord.


 

boulax a écrit :

Personne n'a de temps à perdre à lire ton code non plus.

Personne n'a de temps a perdre a lire tes conneries non plus.
A+,

n°1487939
leflos5
On est ou on est pas :)
Posté le 07-12-2006 à 13:53:32  profilanswer
 

C'est quoi qui s'affiche pas :??:
 
C'est vrai que c'est un peu lourd à lire  :(  
 
Commence par clarifier un peu le code, finir d'utiliser les css à 100% (là je vois encore de vilains attributs qui trainent :d ), évites les <? mais préfère <?php surtout quand tu utilises une balise xmlns qui sert à rien ici en plus ;) , pas de salade html/php, au pire t'as le droit de faire

Code :
  1. <?php echo $toto ?>


mais rien de plus ;)
 
Je pense que ça vient juste des <? ;)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  probléme de mise a jour

 

Sujets relatifs
probleme mise a jour d'un champProbleme lors mise a jour de textarea : encodage ?
Probleme de mise à jour, cache navigateur [PROBLEME] Mise a jour de MySQL ( 5.0.15 )
[applet] probleme de mise à jour, modification non prise en compte[Eclipse] Problème mise à jour [résolu]
[delphi] probleme de mise à jour d'un edit[VB] Probleme d'acces a une base Access en mise a jour.
Problème de mise à jour d'une date ! [Résolu]problème mise à jour php 4.3.3(php4ts.dll)
Plus de sujets relatifs à : probléme de mise a jour


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR