> Tous les forums > Forum des Webmasters
 foreach: insertion d'un array html dans BD mysqlSujet résolu
Ajouter un message à la discussion
Page : [1] 
Page 1 sur 1
tonguim
  Posté le 03/08/2007 @ 15:04 
Aller en bas de la page 
Petit astucien
Bonjour,

j'ai posté il y'a quelques jours concernant le même script, mais le problème étant à un autre niveau, je poste un nouveau message.

Je tente d'insérer 3 éléments dans une table MySql, mais les données ne sont pas insérées; il n'ya aucune erreur affichée.

Ma table "suivi_photos" contient 5 champs dont:
-le premier est "id" qui s'incrémente automatiquement
-le second "code_agem" doit contenir la valeur "$php_code_agem
-les 3 derniers champs "photo1, photo2,photo3" contiennent les valeurs du tableau html "photos[]"

Merci de m'aider à résoudre ce problème.

Voici mon code:
  1. <?php
  2. include "connexion.php";
  3. form();
  4. function form()
  5. {
  6. global $taille_maxi;
  7. global $php_code_agem; //recupération du code agem du fichier visites_march_trav.php
  8. $date=date("ymdhis");
  9. echo '<hr/>
  10. <form enctype="multipart/form-data" action="" method="post">
  11. <table width="80%" border="0" cellspacing="0" cellpadding="0" align="right">
  12. <tr>
  13. <td>
  14. <input type="hidden" name="MAX_FILE_SIZE" value="500000">';
  15. for($i = 1; $i <= 3; $i++)
  16. {
  17. echo 'image '.$i.' '.'<input type="file" name="photos[]"><br>';
  18. }
  19. echo '<input type="submit" name="btonEnvoyer" value="Envoyer les images">
  20. </td>
  21. </tr>
  22. </table>
  23. </form>';
  24. if ($_POST['btonEnvoyer'])
  25. {
  26. $rep_destination = '../images/suivi_photo/';
  27. $point=strrpos($_FILES['photos']['name'], ".");
  28. if ($point)
  29. $extension=substr($_FILES['photos']['name'], $point);
  30. else
  31. $extension ="";
  32. foreach($_FILES['photos']['name'] as $key => $value1)
  33. {
  34. $matable = "suivi_photos";
  35. $table=array('id', 'code_agem', 'photo1', 'photo2', 'photo3');
  36. $valeurs= array('','$php_code_agem','$value1');
  37. $sqlChamps='';
  38. $sqlValeurs='';
  39. foreach($table as $nomChamps)
  40. {
  41. foreach($valeurs as $contenuChamps)
  42. {
  43. $sqlChamps .= $nomChamps.', ';
  44. $sqlValeurs .= $contenuChamps.', ';
  45. $uploadfile = $rep_destination . basename($_FILES['photos']['name'][$key]);
  46. if (move_uploaded_file($_FILES['photos']['tmp_name'][$key], $uploadfile))
  47. {
  48. echo ' image chargée avec succès! <br>';
  49. $sql = 'insert into ' . $matable . '(' . $sqlChamps . ') values (' . $sqlValeurs . ');'; echo "SQL: [".$sql."]\n<br/>";
  50. mysql_query($sql);
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. ?>

Mes requêtes s'affichent ainsi qu'il suit à l'écran:

SQL: [insert into suivi_photos(id, ) values (, );]
SQL: [insert into suivi_photos(id, ) values (, );]
SQL: [insert into suivi_photos(id, ) values (, );]

Publicité
Malcolm
 Posté le 03/08/2007 à 17:49 
Aller en bas de la page Revenir au message précédent Revenir en haut de la page
  Astucien

$_FILES['photos']['name'][$key] je ne sais pas comment est agencé le tableau des photos, mais la clé ne se situe-t-elle pas sur le "name" ? fais un print_r($_FILES) et regarde le code source produit pour voir exactement la structure du tableau. Ce que je veux dire : tu fais un formulaire avec name="photos[]" mais est-ce que tu obtiens, à la suite : $_FILES['photos']['name'][1] ... $_FILES['photos']['name'][2] ... ou bien $_FILES['photos'][1]['name'] ... $_FILES['photos'][2]['name'] ?
Malcolm
 Posté le 17/08/2007 à 19:24 
Aller en bas de la page Revenir au message précédent Revenir en haut de la page
  Astucien

je ne vois pas l'intérêt de mettre le formulaire et son traitement dans une même fonction, surtout si celle-ci n'est instanciée qu'une fois ...

perso j'aurais fait quelque chose ressemblant à ça :

  1. je ne vois pas l'intérêt de mettre le formulaire et son traitement dans une même fonction, surtout si celle-ci n'est instanciée qu'une fois ...
  2. perso j'aurais fait quelque chose ressemblant à ça :
  3. <?php
  4. include "connexion.php";
  5. global $taille_maxi;
  6. global $php_code_agem; //recupération du code agem du fichier visites_march_trav.php
  7. $date=date("ymdhis");
  8. // formulaire posté, besoin de traitement ?
  9. if (isset($_POST['btonEnvoyer']))
  10. {
  11. // oui, traiter le formulaire
  12. $rep_destination = '../images/suivi_photo/';
  13. // Récupération des photos
  14. for($i = 1; $i <= 3; $i++)
  15. {
  16. if ($_FILES['photo_'.$i]['name'] != '') // il y a une photo
  17. {
  18. $uploadfile = $rep_destination . basename($_FILES['photos'.$i]['name']);
  19. if (move_uploaded_file($_FILES['photos'.$i]['tmp_name'], $uploadfile))
  20. {
  21. echo ' image chargée avec succès! <br>';
  22. // Insertion dans MySQL
  23. $req_insert_photo = sprintf("INSERT INTO suivi_photos (code_agem, photo%d) VALUES ('%s','%s');",$i, $php_code_agem, basename($_FILES['photos'.$i]['name']);
  24. if (!mysql_query($req_insert_photo))
  25. {
  26. die($req_insert_photo."<br>\n".mysql_error());
  27. };
  28. };
  29. };
  30. };
  31. };
  32. // Affichage du formulaire
  33. echo '<hr/>
  34. <form enctype="multipart/form-data" action="" method="post">
  35. <table width="80%" border="0" cellspacing="0" cellpadding="0" align="right">
  36. <tr>
  37. <td>
  38. <input type="hidden" name="MAX_FILE_SIZE" value="500000">';
  39. for($i = 1; $i <= 3; $i++)
  40. {
  41. echo 'image '.$i.' '.'<input type="file" name="photo_"'.$i.'><br>';
  42. }
  43. echo '<input type="submit" name="btonEnvoyer" value="Envoyer les images">
  44. </td>
  45. </tr>
  46. </table>
  47. </form>';
  48. ?>

à peu de choses près,on doit approcher.

tonguim
 Posté le 17/08/2007 à 20:02 
Aller en bas de la page Revenir au message précédent Revenir en haut de la page
Petit astucien

Après avoir ajouté l'instruction print_r($_FILES) et chargé les 3 images ge-architect-19xx_5.jpg, ge-personne-19xx_23.jpg, et ge-architect-19xx_58.jpg

voici ce que j'obtiens à l'écran:

Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) image chargée avec succès!
SQL: [insert into suivi_photos(id, ) values (, );]
Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) image chargée avec succès!
SQL: [insert into suivi_photos(id, ) values (, );]
Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) image chargée avec succès!
SQL: [insert into suivi_photos(id, ) values (, );]
Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) ) ) Array ( [photos] => Array ( [name] => Array ( [0] => ge-architect-19xx_5.jpg [1] => ge-personne-19xx_23.jpg [2] => ge-architect-19xx_58.jpg ) [type] => Array ( [0] => image/jpeg [1] => image/jpeg [2] => image/jpeg ) [tmp_name] => Array ( [0] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18D.tmp [1] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18E.tmp [2] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload\php18F.tmp ) [error] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [size] => Array ( [0] => 6950 [1] => 12557 [2] => 14142 ) )



Modifié par tonguim le 17/08/2007 20:03
Malcolm
 Posté le 17/08/2007 à 20:26 
Aller en bas de la page Revenir au message précédent Revenir en haut de la page
  Astucien

ok, mais mon essai au dessus, que donne-t-il ?
tonguim
 Posté le 20/08/2007 à 17:22 
Aller en bas de la page Revenir au message précédent Revenir en haut de la page
Petit astucien

J'ai essayé le script; il ne charge pas les images, mais je n'ai pas de messages d'erreurs à l'écran. J'ai juste une page blanche. A mon avis, l'erreur pourrait se trouver dans cette partie du code:

$req_insert_photo = sprintf("INSERT INTO suivi_photos (code_agem, photo%d) VALUES ('%s','%s');",$i, $php_code_agem, basename($_FILES['photos'.$i]['name']);

J'ai essayé de comprendre la syntaxe de la fonction sprintf (http://www.php.net/sprintf); mais je n'ai pas compris la manière dont tu l'as utilisé (la syntaxe est complexe!); il me semble néammoins qu'il y'a une incohérence au niveau du nombre des arguments.

J'ai aussi ajouté

mysql_query($req_insert_photo);

Ps: ma table a 5 champs: id (qui s'incrémente automatiquement), code_agem, photo1,photo2,photo3

tonguim
 Posté le 21/08/2007 à 19:10 
Aller en bas de la page Revenir au message précédent Revenir en haut de la page
Petit astucien

Merci à tous. Mon script fonctionne parfaitement maintenant. Voici le bon code:

<!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">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>
<body>
<?php
include "connexion.php";

$php_code_agem=$_GET['code'];

global $taille_maxi;
//global $php_code_agem; //recupération du code agem du fichier visites_march_trav.php
$date = date("ymdhis");
echo '<hr>
<form enctype="multipart/form-data" action="" method="post">
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td>
<input type="hidden" name="MAX_FILE_SIZE" value="500000">';
for($i = 1; $i <= 3; $i++)
{
echo 'image ' . $i . ' ' . '<input type="file" name="photos[]"><br>';
}
echo '<input type="submit" name="btonSend" value="Send images">
</td>
</tr>
</table>
</form>';
if (isset($_POST['btonSend']))
{
$rep_destination = '../images/suivi_photo/';
foreach($_FILES['photos']['name'] as $key => $value)
{
$uploadfile = $rep_destination . basename($_FILES['photos']['name'][$key]);
if (move_uploaded_file($_FILES['photos']['tmp_name'][$key], $uploadfile))
{
echo ' uploaded! <br>';
}
}
$sql = "insert into suivi_photos (id, code_agem, photo1, photo2, photo3) values ('' ,'$php_code_agem', '" . $_FILES['photos']['name'][0] . "'
, '" . $_FILES['photos']['name'][1] . "', '" . $_FILES['photos']['name'][2] . "')";
mysql_query($sql) or die(mysql_error());
}
?>
</body>
</html>

Page : [1] 
Page 1 sur 1

Vous devez être connecté pour participer à la discussion.
Cliquez ici pour vous identifier.

Vous n'avez pas de compte ? Créez-en un gratuitement !
Recevoir PC Astuces par e-mail


La Lettre quotidienne +226 000 inscrits
Avec l'actu, des logiciels, des applis, des astuces, des bons plans, ...

Les bonnes affaires
Une fois par semaine, un récap des meilleurs offres.

Les fonds d'écran
De jolies photos pour personnaliser votre bureau. Une fois par semaine.

Les nouveaux Bons Plans
Des notifications pour ne pas rater les bons plans publiés sur le site.

Les bons plans du moment PC Astuces

Tous les Bons Plans
449,99 €Portable Dell Inspiron 15 3501 (15.6 pouces, FullHD, Core i3, 8Go, SSD 256Go) à 449,99 €
Valable jusqu'au 27 Janvier

RueDuCommerce fait une promotion sur l'ordinateur portable Dell Inspiron 15 3501 qui passe à 449,99 € alors qu'on le trouve ailleurs à partir de 529 €. Cet ordinateur possède un écran 15,6 pouces Full HD (1920x1080), un processeur Intel Core i3-1115G4 avec chip graphique Intel UHD intégré, 8 Go de RAM (extensibles à 16 Go) et un SSD NVMe de 256 Go. Le tout tourne sous Windows 10 qui peut être mis à jour pour Windows 11.


> Voir l'offre
699,99 €Ultraportable 15 pouces Asus Vivobook S533UA (OLED FHD, R5 5500U, 8 Go, SSD 512 Go) à 699,99 €
Valable jusqu'au 27 Janvier

RueDuCommerce fait une promotion sur l'ultraportable Asus Vivobook S533UA-L1216T qui passe à 699,99 € au lieu de 799 €. Cet ordinateur dispose d'un superbe écran 15 pouces OLED FHD, d'un processeur AMD Ryzen 5 5500U (6 coeurs) avec chip Radeon Vega 7 intégré, 8 Go de RAM, un SSD NVMe de 512 Go et tourne sous Windows 10 que vous pouvez mettre à jour pour Windows 11. Il ne pèse que 1,8 kg et propose une autonomie réelle de 7h30.


> Voir l'offre
899,99 €Ultraportable 15.6 pouces Asus Vivobook S3500QA (OLED FHD, R7 5800H, 16Go, SSD 512 Go) à 899,99 €
Valable jusqu'au 26 Janvier

Cdiscount fait une promotion sur l'ultraportable Asus Vivobook S3500QA-L1184W qui passe à 899,95 € au lieu de 1049 €. Cet ordinateur dispose d'un superbe écran 15.6 pouces OLED FHD (1920x1080), d'un processeur AMD Ryzen 7 5800H (8 coeurs) avec chip Radeon Vega 8 intégré, 16 Go de RAM, un SSD NVMe de 512 Go et tourne sous Windows 11. Il ne pèse que 1,65 kg et propose une autonomie d'environ 8 heures.


> Voir l'offre

Sujets relatifs
convertir word.doc pour insertion dans page html
insertion html dans dreamweaver4
Insertion d'un fichier video dans une page HTML ?
insertion code html
Codage HTML dans Dreamweaver avec une template Photoshop
Target dans menu déroulant "option value=...." html
Insertion image dans page Web directement sans URL ?
insertion d'images dans panneau defilant vertical
insertion d'une image dans une balise div
Panorama 360° en swf dans une page en HTML
Plus de sujets relatifs à foreach: insertion d''un array html dans BD mysql
 > Tous les forums > Forum Forum des Webmasters