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

 MySQL Discussion :

utiliser mysql a partir d'un tableau HTML


Sujet :

MySQL

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Février 2009
    Messages
    1
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2009
    Messages : 1
    Points : 2
    Points
    2
    Par défaut utiliser mysql a partir d'un tableau HTML
    Bonsoir a tous
    Novice, j'aimerais savoir comment utiliser mysql pour extraire des données d'un tableau HTML.
    Ce tableau, me permet de gérer ma collection.
    en voici un bout de code source
    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
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    <html>
     
    <body bgcolor="#FFFFCC">
     
    <table border="1" width="100%" bordercolor="#FFCC00" cellspacing="0">
    	<tr>
    		<td width="58" height="39">
    		<p align="center">Visuel</td>
    		<td height="39" width="155">
    		<p align="center">Noms</td>
     
    		<td height="39">
    		<p align="center">Descriptif</td>
    		<td width="62" align="center" height="39">Variante</td>
    		<td width="66" align="center" height="39">Présent&nbsp;&nbsp; collection</td>
    		<td width="52" align="center" height="39">Etat</td>
    		<td width="63" align="center" height="39">Référencé</td>
     
    		<td width="64" align="center" height="39">Page&nbsp; Lambert</td>
    		<td width="38" align="center" height="39">Cotes</td>
    	</tr>
    	<tr>
    		<td width="58" rowspan="3" bordercolor="#FFCC00" height="4">
    		<p align="center">
    		<font size="2">
     
    		<img border="0" src="a1.jpg" width="54" height="54"></font></td>
    		<td width="155" height="12" bordercolor="#FFCC00" rowspan="3"><font size="2">ABELE</font></td>
    		<td height="4" bordercolor="#FFCC00"><font size="2">N°1 écriture blanche</font></td>
    		<td width="62" align="center" height="4" bordercolor="#FFCC00">1</td>
    		<td width="66" align="center" height="4" bordercolor="#FFCC00">1</td>
    		<td width="52" align="center" height="4" bordercolor="#FFCC00">bon</td>
     
    		<td width="63" align="center" height="4" bordercolor="#FFCC00">oui</td>
    		<td width="64" align="center" height="4" bordercolor="#FFCC00"><font size="2">69</font></td>
    		<td width="38" align="center" height="4" bordercolor="#FFCC00"><font size="2">2</font></td>
    	</tr>
    	<tr>
    		<td height="4" bordercolor="#FFCC00"><font size="2">N°1 écriture Or</font></td>
    		<td width="62" align="center" height="4" bordercolor="#FFCC00">0</td>
     
    		<td width="66" align="center" height="4" bordercolor="#FFCC00">2</td>
    		<td width="52" align="center" height="4" bordercolor="#FFCC00">moyen</td>
    		<td width="63" align="center" height="4" bordercolor="#FFCC00">oui</td>
    		<td width="64" align="center" height="4" bordercolor="#FFCC00"><font size="2">69</font></td>
    		<td width="38" align="center" height="4" bordercolor="#FFCC00">
    		<font size="2">4</font></td>
     
    	</tr>
    	<tr>
    		<td height="4" bordercolor="#FFCC00"><font size="2">N°1 imprimée au verso 1757 (visuel de la N°17)</font></td>
    		<td width="62" align="center" height="4" bordercolor="#FFCC00">0</td>
    		<td width="66" align="center" height="4" bordercolor="#FFCC00">1</td>
    		<td width="52" align="center" height="4" bordercolor="#FFCC00">bon</td>
    		<td width="63" align="center" height="4" bordercolor="#FFCC00">oui</td>
     
    		<td width="64" align="center" height="4" bordercolor="#FFCC00"><font size="2">69</font></td>
    		<td width="38" align="center" height="4" bordercolor="#FFCC00">
    		<font size="2">22</font></td>
    	</tr>
    	<tr>
    		<td width="58" height="12" rowspan="3"></td>
    		<td width="155" height="12" rowspan="3"><font size="2">ABELE</font></td>
     
    		<td height="4"><font size="2">N°2 écriture blanche</font></td>
    		<td width="62" align="center" height="4">0</td>
    		<td width="66" align="center" height="4">0</td>
    		<td width="52" align="center" height="4"></td>
    		<td width="63" align="center" height="4">oui</td>
    		<td width="64" align="center" height="4"><font size="2">69</font></td>
     
    		<td width="38" align="center" height="4"><font size="2">2</font></td>
    	</tr>
    	<tr>
    		<td height="4"><font size="2">N°2 écriture Or</font></td>
    		<td width="62" align="center" height="4">0</td>
    		<td width="66" align="center" height="4">0</td>
    		<td width="52" align="center" height="4"></td>
     
    		<td width="63" align="center" height="4">oui</td>
    		<td width="64" align="center" height="4"><font size="2">69</font></td>
    		<td width="38" align="center" height="4"><font size="2">4</font></td>
    	</tr>
    	<tr>
    		<td height="4"><font size="2">N°2 imprimée au verso 1757 (visuel de la 
    		N°17)</font></td>
    		<td width="62" align="center" height="4">0</td>
     
    		<td width="66" align="center" height="4">0</td>
    		<td width="52" align="center" height="4"></td>
    		<td width="63" align="center" height="4">oui</td>
    		<td width="64" align="center" height="4"><font size="2">69</font></td>
    		<td width="38" align="center" height="4"><font size="2">22</font></td>
    	</tr>
    	</table>
     
    </body>
     
    </html>
    autre question si l'on peut extraire des données, peut on a l'inverse se servir de Mysql pour le compléter
    n'ayant pas trouver de réponses concrètes sur les différents blogs, forums ou autres lien sur le net, parlants du Php et de Mysql.
    je fait appel a toutes vos connaissances en la matière, qui me seront d'un grand recours pour la mise en place de ce que je souhaite faire pour la gestion de ma collection.
    Dans l'attente d'une réponse, je vous remercie par avance.
    Eric

  2. #2
    ced
    ced est déconnecté
    Rédacteur/Modérateur

    Avatar de ced
    Homme Profil pro
    Gestion de bases de données techniques
    Inscrit en
    Avril 2002
    Messages
    6 034
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Gestion de bases de données techniques
    Secteur : Agroalimentaire - Agriculture

    Informations forums :
    Inscription : Avril 2002
    Messages : 6 034
    Points : 23 779
    Points
    23 779
    Par défaut
    Bonjour,

    Pour insérer les données du tableau dans MySQL, le mieux est (je crois) d'enregistrer le contenu du tableau dans un fichier CSV, puis de l'insérer dans la base en suivant ce qui est décrit dans la FAQ.

    Pour afficher dans un tableau HTML le contenu d'une base MySQL, il faut passer par du PHP. Voici le lien vers des tutoriels PHP.

    Bon courage,

    ced

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Utiliser un repeater pour faire un tableau HTML
    Par arngrimur dans le forum ASP.NET
    Réponses: 2
    Dernier message: 24/01/2012, 15h03
  2. [MySQL] Utiliser Mysql avec php dans un tableau html
    Par xunil2003 dans le forum PHP & Base de données
    Réponses: 8
    Dernier message: 20/02/2010, 18h39
  3. Réponses: 2
    Dernier message: 25/05/2009, 09h38
  4. [MySQL] requête mysql avec condition à élaborer à partir d'un tableau
    Par taffMan dans le forum PHP & Base de données
    Réponses: 9
    Dernier message: 13/06/2007, 09h18

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