Bonjour à tous, quelqu'un d'assidu et courageux pourrait-il me corriger les bugs dans mes script, je n'arrive pas à comprendre pourquoi une erreur s'affiche avec l'heure des réservations.

Ci-joint, les scripts des 2 fichiers et la base sql:
Client1.php

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
<?php
 
$connect=mysql_connect('localhost','root','');
$database = mysql_select_db('taxi',$connect);
 
 
?>
<script language="javascript">
 
function client( nom ) {
	window.open('Client2.php?nom='+nom, 'Client', 'width=800, height=800, scrollbars=YES'); 
}
 
</script>
<!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>Page de recherche d'une agence</title>
</head>
<body>
<h1> Page de recherche d'une agence </h1>
<FORM NAME="post2" method="post" action="">
<P> Nom de l'agence:
  <input type="text"  name="nom" id="nom" />
<p>Ville:
<select name="ville"  id="ville">
  <option value="">Choix... </option>
  <option value="Paris">Paris </option>
  <option value="Lyon">Lyon </option>
  <option value="Strasbourg">Strasbourg </option>
  <option value="Nice">Nice</option>
</select>
</p>
<P> Heure de réservation:
<select name="h_reservation" id="h_reservation">
	<option value="">Choix..</option>
	<option value="8">8 h</option>
	<option value="9">9h</option>
	<option value="10">10h.</option>
	<option value="11">11h</option>
	<option value="12">12h</option>
	<option value="13">13h</option>
	<option value="14">14h</option>
	<option value="15">15h</option>
	<option value="16">16h</option>
	<option value="17">17h</option>
	<option value="18">18h</option>
	<option value="19">19h</option>
	<option value="20">20h</option>
	<option value="21">21h</option>
	<option value="22">22h</option>
</select>
</P>
<p>
<INPUT TYPE="SUBMIT" ID="submit" value="ok" name="submit" >
</p>
</form>
<table border="1" align="center">
	<?
 
$h_reservation=$_POST["h_reservation"];
	if  ($h_reservation!='')  {
		$nom = $_POST["nom"];
		$ville = $_POST["ville"];
		$h_reservation = $_POST["h_reservation"];
		$sql = "SELECT * from agence WHERE  h_ouverture <= '$h_reservation:00:00' AND h_fermeture >= '$h_reservation:00:00' ";
		if ($nom!='') {
		$sql .="AND nom='$nom' ";
		}	
		if ($ville!='') {
		$sql .="and ville='$ville'";
 
		}
 
		$requete = mysql_query($sql);
	}
 
	while($agence = @mysql_fetch_object($requete)){
 
		echo "
		  <tr>
			<td> $agence->nom  </td>
			<td> $agence->adresse </td>
			<td> $agence->ville </td>
			<td> $agence->cp  </td>
			<td> $agence->nom_contact </td>
			<td> $agence->prenom_contact </td>
			<td> $agence->num_tel </td>
			<td> $agence->h_ouverture </td>
			<td> $agence->h_fermeture </td>
			<td> <input type='button' value='Réserver une agence' onclick=\"javascript:client('$agence->nom');\"></td> 
			
			</tr><br>";
			}
	 ?>
</table>
</body>
</html>
Client2.php
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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<?php
$connect=mysql_connect('localhost','root','');
$database = mysql_select_db('taxi',$connect);
 
$requete = mysql_query ("SELECT * from agence where nom = '".$_GET["nom"]."'");
 
 
$requete_mercedes = mysql_query ("SELECT DISTINCT(modele) from voiture where marque='Mercedes'AND nom = '".$_GET["nom"]."'");
$requete_mercedes_couleur = mysql_query ("SELECT DISTINCT(couleur) from voiture where marque='mercedes' AND nom = '".$_GET["nom"]."'");
$requete_mercedes_bb = mysql_query ("SELECT DISTINCT(bb) from voiture where marque='mercedes' AND nom = '".$_GET["nom"]."'");
 
$requete_peugeot = mysql_query ("SELECT DISTINCT(modele) from voiture where marque='Peugeot' AND nom = '".$_GET["nom"]."'");
$requete_peugeot_couleur = mysql_query ("SELECT DISTINCT(couleur) from voiture where marque='Peugeot' AND nom = '".$_GET["nom"]."'");
$requete_peugeot_bb = mysql_query ("SELECT DISTINCT(bb) from voiture where marque='peugeot' AND nom = '".$_GET["nom"]."'");
 
$requete_renault = mysql_query ("SELECT DISTINCT(modele) from voiture where marque='renault' AND nom = '".$_GET["nom"]."'");
$requete_renault_couleur = mysql_query ("SELECT DISTINCT(couleur) from voiture where marque='renault' AND nom = '".$_GET["nom"]."'");
$requete_renault_bb = mysql_query ("SELECT DISTINCT(bb) from voiture where marque='renault' AND nom = '".$_GET["nom"]."'");
 
$requete_ford = mysql_query ("SELECT DISTINCT(modele) from voiture where marque='ford' AND nom = '".$_GET["nom"]."'");
$requete_ford_couleur = mysql_query ("SELECT DISTINCT(couleur) from voiture where marque='ford' AND nom = '".$_GET["nom"]."'");
$requete_ford_bb = mysql_query ("SELECT DISTINCT(bb) from voiture where marque='ford' AND nom = '".$_GET["nom"]."'");
 
$requete_marque = mysql_query ("SELECT DISTINCT(marque) from voiture where nom = '".$_GET["nom"]."'");
$requete_modele = mysql_query ("SELECT DISTINCT(modele) from voiture where nom = '".$_GET["nom"]."'");
$requete_bb = mysql_query ("SELECT DISTINCT(bb) from voiture where nom = '".$_GET["nom"]."'");
$requete_couleur = mysql_query ("SELECT DISTINCT(couleur) from voiture where nom = '".$_GET["nom"]."'");
 
?>
<!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>Page de recherche d'un type de voiture</title>
 
</head>
 
<body>
<form name="form1" method="POST" action="">
<h1>Page de recherche d'un type de voiture </h1>
<BR>
<p>Agence:
<SELECT NAME="select1" id="select1">
<?php 
 
while ($agence=mysql_fetch_object($requete)) { 
 
	echo "<option value= \"$agence->nom\""; 
 
			if ($_POST[select1]==$agence->nom) { echo "selected";
		     }
     				echo ">".$agence->nom."</OPTION>";
 
} 
?>
 
 
 
</select>
<BR>
<p> Marque:
<select name="marque" id="marque" onchange="javascript:submit();">
	<option value="">choix... </option>
	<?php while ($voiture=mysql_fetch_object($requete_marque)) { echo "<option value=\"$voiture->marque\""; 
								if ($_POST[marque]==$voiture->marque) { 
										echo "selected";
								}
    		     						echo ">".$voiture->marque."</OPTION>\n";
			} ?>
 
 
</select>
</p>
<p> Modèle:
<select name="modele" id="modele" onchange="javascript:submit();">
		    <option value="">choix...</option>
			 <?php if ($_POST["marque"]=="") {
			    	 while ($modele=mysql_fetch_object($requete_modele)) { 
					 	echo "<option value= \"$modele->modele\""; 
						if ($_POST["modele"]==$modele->modele) { 
							echo "selected";
					    }
   						echo ">".$modele->modele."</OPTION>\n";
					 }
				 } 
 
				if ($_POST["marque"]=="Mercedes") {
			    	 while ($mercedes=mysql_fetch_object($requete_mercedes)) { 
					 	echo "<option value= \"$mercedes->modele\""; 
						if ($_POST["modele"]==$mercedes->modele) { 
							echo "selected";
					    }
   						echo ">".$mercedes->modele."</OPTION>\n";
					 }
				 } 
				 else if ($_POST["marque"]=="Peugeot") {
			    	 while ($peugeot=mysql_fetch_object($requete_peugeot)) { 
					 	echo "<option value= \"$peugeot->modele\""; 
						if ($_POST["modele"]==$peugeot->modele) { 
							echo "selected";
					    }
   						echo ">".$peugeot->modele."</OPTION>\n";
					 }
				 }
 
				 else if ($_POST["marque"]=="Ford") {
			    	 while ($Ford=mysql_fetch_object($requete_ford)) { 
					 	echo "<option value= \"$Ford->modele\""; 
						if ($_POST["modele"]==$Ford->modele) { 
							echo "selected";
					    }
   						echo ">".$Ford->modele."</OPTION>\n";
					 }
				 }
 
				  else if ($_POST["marque"]=="Renault") {
			    	 while ($Renault=mysql_fetch_object($requete_renault)) { 
					 	echo "<option value= \"$Renault->modele\""; 
						if ($_POST["modele"]==$Renault->modele) { 
							echo "selected";
					    }
   						echo ">".$Renault->modele."</OPTION>";
					 }
				 } ?>
 
 
 
 
 
</select>
 
<p> Couleur:
<select name="couleur" id="couleur" onchange="javascript:submit();">
		    <option value="">choix...</option>
		  <?php if ($_POST["marque"]=="") {
			    	 while ($couleur=mysql_fetch_object($requete_couleur)) { 
					 	echo "<option value= \"$couleur->couleur\""; 
						if ($_POST["couleur"]==$couleur->couleur) { 
							echo "selected";
					    }
   						echo ">".$couleur->couleur."</OPTION>";
					 }
				 } 
 
 
 
				if ($_POST["marque"]=="Mercedes") {
			    	 while ($mercedes=mysql_fetch_object($requete_mercedes_couleur)) { 
					 	echo "<option value= \"$mercedes->couleur\""; 
						if ($_POST["couleur"]==$mercedes->couleur) { 
							echo "selected";
					    }
   						echo ">".$mercedes->couleur."</OPTION>";
					 }
				 } 
				 if ($_POST["marque"]=="Peugeot") {
			    	 while ($peugeot=mysql_fetch_object($requete_peugeot_couleur)) { 
					 	echo "<option value= \"$peugeot->couleur\""; 
						if ($_POST["couleur"]==$peugeot->couleur) { 
							echo "selected";
					    }
   						echo ">".$peugeot->couleur."</OPTION>";
					 }
				 } 
 
				 if ($_POST["marque"]=="Renault") {
			    	 while ($Renault=mysql_fetch_object($requete_renault_couleur)) { 
					 	echo "<option value= \"$Renault->couleur\""; 
						if ($_POST["couleur"]==$Renault->couleur) { 
							echo "selected";
					    }
   						echo ">".$Renault->couleur."</OPTION>";
					 }
				 } 
 
				 if ($_POST["marque"]=="Ford") {
			    	 while ($Ford=mysql_fetch_object($requete_ford_couleur)) { 
					 	echo "<option value= \"$Ford->couleur\""; 
						if ($_POST["couleur"]==$Ford->couleur) { 
							echo "selected";
					    }
   						echo ">".$Ford->couleur."</OPTION>";
					 }
				 } 
				  ?>
 
</select>
<p>	Siège bébé
<select name="bb" id="bb" onchange="javascript:submit();">
		    <option value="">choix...</option>
		  <? if ($_POST["marque"]=="") {
			    	 while ($bb=mysql_fetch_object($requete_bb)) { 
					 	echo "<option value= \"$bb->bb\""; 
						if ($_POST["bb"]==$bb->bb) { 
							echo "selected";
					    }
   						echo ">".$bb->bb."</OPTION>";
					 }
				 } 
 
 
		             if ($_POST["marque"]=="Renault") {
			    	 while ($Renault=mysql_fetch_object($requete_renault_bb)) { 
					 	echo "<option value= \"$Renault->bb\""; 
						if ($_POST["bb"]==$Renault->bb) { 
							echo "selected";
					    }
   						echo ">".$Renault->bb."</OPTION>";
					 }
				 } 
 
 
			 if ($_POST["marque"]=="Mercedes") {
			    	 while ($Mercedes=mysql_fetch_object($requete_mercedes_bb)) { 
					 	echo "<option value= \"$Mercedes->bb\""; 
						if ($_POST["bb"]==$Mercedes->bb) { 
							echo "selected";
					    }
   						echo ">".$Mercedes->bb."</OPTION>";
					 }
				 } 
				  if ($_POST["marque"]=="Peugeot") {
			    	 while ($Peugeot=mysql_fetch_object($requete_peugeot_bb)) { 
					 	echo "<option value= \"$Peugeot->bb\""; 
						if ($_POST["bb"]==$Peugeot->bb) { 
							echo "selected";
					    }
   						echo ">".$Renault->bb."</OPTION>";
					 }
				 } 
				  if ($_POST["marque"]=="Ford") {
			    	 while ($Ford=mysql_fetch_object($requete_ford_bb)) { 
					 	echo "<option value= \"$Ford->bb\""; 
						if ($_POST["bb"]==$Ford->bb) { 
							echo "selected";
					    }
   						echo ">".$Ford->bb."</OPTION>";
					 }
				 } 
			?>
 
</select>
<p>
 
</form>
 
<table border="1" align="center">
  <tr>
    <td>Nom de l'Agence</td>
    <td>Marque</td>
    <td>Modèle</td>
	<td>Date de fabrication</td>
	<td>Couleur</td>
	<td>Nb de place</td>
	<td>siège bébé</td>
 
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	<td>&nbsp;</td>
 
  </tr>
 
 
<?
 
 
 
if  ($_POST["select1"]!='')  {
	$nom = $_POST["select1"];
	$marque = $_POST["marque"];
	$modele = $_POST["modele"];
	$couleur= $_POST["couleur"];
	$bb=$_POST["bb"];
 
	$sql = "SELECT * from voiture WHERE  nom = '$nom' ";
	if ($marque!='') {
	$sql .="AND marque='$marque' ";
	}	
	if ($modele!='') {
	$sql .="and modele='$modele'";
	}
	if ($couleur!='') {
	$sql .="AND couleur='$couleur' ";
	}	
	if ($bb!='') {
	$sql .="AND bb='$bb' ";
	}
	$requete = mysql_query($sql);
}
 
 
 
 
while($agence = @mysql_fetch_object($requete)){
	echo "
	  <tr>
		<td> $agence->nom  </td>
		<td> $agence->marque </td>
		<td> $agence->modele </td>
		<td> $agence->date_fabric  </td>
		<td> $agence->couleur </td>
		<td> $agence->nb_place </td>
		<td> $agence->bb </td>
	  </tr> ";
  }
?>
</table>
</body>
</html>
agence.php
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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
 
$connect=mysql_connect('localhost','root','');
$database = mysql_select_db('taxi',$connect);
 
if($_POST["submit1"]!=''){
	$nom = $_POST["nom"];
	$adresse = $_POST["adresse"];
	$cp = $_POST["cp"];
	$ville = $_POST["ville"];
	$nom_contact = $_POST["nom_contact"];
	$prenom_contact = $_POST["prenom_contact"];
	$h_ouverture = $_POST["h_ouverture"];
	$h_fermeture = $_POST["h_fermeture"];
}
 
if($_POST["submit2"]!=''){
    $nom_agence = $_POST["nom_agence"];
	$marque = $_POST["marque"];
	$modele = $_POST["modele"];
	$date_fabric = $_POST["date_fabric"];
	$couleur = $_POST["couleur"];
	$nb_place = $_POST["nb_place"];
	$siege_bb = $_POST["siege_bb"];
 
}
 
/*
echo "agence : $nom<br>";
echo "adresse : $adresse<br>";
echo "codpos : $cp<br>";
echo "ville : $ville<br>";
echo "contact n : $nom_contact<br>";
echo "contact p : $prenom_contact<br>";
echo "ouverture : $h_ouverture<br>";
echo "fermeture : $h_fermeture<br>";
*/
 
if ($nom_agence!='' AND $marque!='' AND $modele!='' AND 
$date_fabric!='' AND $couleur!='' AND $nb_place!='' AND $siege_bb!='') {
 
	$sql="insert into voiture (nom,marque, modele,date_fabric, couleur, nb_place, bb) 
			values ('$nom_agence','$marque','$modele','$date_fabric-00-00', '$couleur', '$nb_place','$siege_bb')";
 
	$requete=mysql_query($sql);
 
}
 
if ($nom!='' AND $adresse!='' AND $cp!='' AND $ville!='' AND $nom_contact!='' AND $prenom_contact!='' AND $h_ouverture!='' AND $h_fermeture!='') {
 
	$sql="insert into agence (nom, adresse, cp, ville, nom_contact, prenom_contact, h_ouverture, h_fermeture) 
			values ('$nom','$adresse', '$cp', '$ville','$nom_contact','$prenom_contact','$h_ouverture:00:00','$h_fermeture:00:00')";
 
	$requete=mysql_query($sql);
}
 
 
$requete2 = mysql_query("SELECT * from agence");				
 
 
?>
<!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>
 
	<FORM NAME="post1" method="post" action="">
		<BR> Nom agence:
		<INPUT TYPE="text" id="nom" name="nom">
		<P> Adresse:
		<INPUT TYPE="TEXT" id="adresse" name="adresse">
		<P> Code Postal
		<INPUT TYPE="TEXT" id="cp" name="cp">
		<P>
 
		<P>Ville:
		<select name="ville"  id="ville">
		  <option value="">Choix... </option>
		  <option value="Paris">Paris </option>
		  <option value="Lyon">Lyon </option>
		  <option value="Strasbourg">Strasbourg </option>
		  <option value="Nice">Nice</option>
		</select>
 
		<P> Nom de contact:
		<input type="text"  name="nom_contact" id="nom_contact" />
 
		<P>Pr&eacute;nom contact:
		<input type="text" name="prenom_contact" id="prenom_contact">
 
		<P> Heure d'ouverture:
		<select name="h_ouverture" id="h_ouverture">
		<?php
		for($o = 8; $o <= 22; ++$o)
			echo '<option value="'.$o.'">'.$o.'H00</option>';
		?>
		</select> 
 
 
		 <p> Heure de fermeture
		 <select name="h_fermeture" id="h_fermeture">
		<?php
		for($f = 8; $f <= 22; ++$f)
			echo '<option value="'.$f.'">'.$f.'H00</option>';
		?></select> 
		<p>
		<input type="submit" name="submit1" id="submit1" value="ok"> 
		</p>
	</FORM>
		<p>__________________________________________________________________________________________________________________________________________________________</p>
	<form name="post2" method="post" action="">
		<p>Nom:
		<select name="nom_agence" id="nom_agence">
		<option value="">choix...</option>
		<?php while ($agence=mysql_fetch_object($requete2)) { echo "<option value= \"$agence->nom\""; 
					if ($_POST[nom]==$agence->nom) {
						echo "selected";
					}
					echo ">".$agence->nom."</OPTION>";
			  }
		?>
 
		</select>
		<P>Marque:
		<input type="text name" id=marque name="marque">
		<P>Modèle:
		<input type="text name" id=marque name="modele">
		<P>Date de Fabrication (YYYY/MM/JJ) :
		<input type="text name" id="date_fabric" name="date_fabric" ?>
 
		<P>Couleur:
		<input type="text name" id="couleur" name="couleur">
		<P>Nombre de places:
		<input type="text name" id="nb_place" name="nb_place">
		<P>siege bébé: oui
		<input name="siege_bb" type="radio" id="oui" value="oui">
		non <input name="siege_bb" type="radio" id="non" value="non">
		<p>
		<input name="submit2" type="submit" Value="ok">
	</form>
 
</body>
</html>
et enfin, la base sql:
Code SQL : 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
-- phpMyAdmin SQL Dump
-- version 2.6.1
-- <a href="http://www.phpmyadmin.net" target="_blank">http://www.phpmyadmin.net</a>
-- 
-- Serveur: localhost
-- Généré le : Mardi 04 Mars 2008 à 19:39
-- Version du serveur: 4.1.9
-- Version de PHP: 4.3.10
-- 
-- Base de données: `taxi`
-- 
 
-- --------------------------------------------------------
 
-- 
-- Structure de la table `agence`
-- 
 
CREATE TABLE `agence` (
  `nom` varchar(100) NOT NULL default '',
  `adresse` varchar(100) NOT NULL default '',
  `ville` varchar(50) NOT NULL default '',
  `cp` varchar(5) NOT NULL default '',
  `nom_contact` varchar(50) NOT NULL default '',
  `prenom_contact` varchar(50) NOT NULL default '',
  `num_tel` varchar(20) NOT NULL default '',
  `h_ouverture` time NOT NULL default '00:00:00',
  `h_fermeture` time NOT NULL default '00:00:00',
  PRIMARY KEY  (`nom`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
-- 
-- Contenu de la table `agence`
-- 
 
INSERT INTO `agence` VALUES ('G7', 'rue de la pompe', 'Paris', '75000', 'Foster', 'John', '', '00:00:10', '00:00:19');
INSERT INTO `agence` VALUES ('G8', 'rue de la pompe', 'Lyon', '69000', 'Dilasser', 'Frank', '', '08:00:00', '12:00:00');
INSERT INTO `agence` VALUES ('Marivel', '15 rue des cyprés', 'Paris', '75015', 'Bertand', 'Jule', '', '10:00:00', '15:00:00');
INSERT INTO `agence` VALUES ('Super Taxi', 'rue des Renaudes', 'Paris', '75018', 'Vidal', 'William', '', '16:00:00', '22:00:00');
INSERT INTO `agence` VALUES ('Taxi GOGO', 'bld alfred', 'Lyon', '69000', 'Jacquiot', 'Cyril', '', '12:00:00', '18:00:00');
INSERT INTO `agence` VALUES ('Drive Motor', 'rue des sabliers', 'Nice', '06000', 'Selosse', 'François', '', '09:00:00', '16:00:00');
INSERT INTO `agence` VALUES ('Car Way', 'rue Victor Hugo', 'Strasbourg', '67000', 'Chaffardon', 'Paul', '', '12:00:00', '17:00:00');
INSERT INTO `agence` VALUES ('A10', 'rue des sabliers', 'Paris', '75015', 'Alfred', 'Julie', '', '08:00:00', '14:00:00');
 
-- --------------------------------------------------------
 
-- 
-- Structure de la table `voiture`
-- 
 
CREATE TABLE `voiture` (
  `nom` varchar(50) NOT NULL default '',
  `marque` varchar(20) NOT NULL default '',
  `modele` varchar(20) NOT NULL default '',
  `date_fabric` date NOT NULL default '0000-00-00',
  `couleur` varchar(20) NOT NULL default '',
  `nb_place` int(11) NOT NULL default '0',
  `bb` enum('oui','non') NOT NULL default 'oui'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
-- 
-- Contenu de la table `voiture`
-- 
 
INSERT INTO `voiture` VALUES ('G8', 'Mercedes', 'SLK', '2000-01-01', 'Grise', 5, 'oui');
INSERT INTO `voiture` VALUES ('G8', 'Peugeot', 'Grand Espace 4', '1999-06-05', 'Verte', 7, 'oui');
INSERT INTO `voiture` VALUES ('Taxi Gogo', 'Ford', 'Focus', '0000-00-00', 'Rouge', 5, 'non');
INSERT INTO `voiture` VALUES ('Marivel', 'Ford', 'Cougar', '1997-02-15', 'Jaune', 5, 'oui');
INSERT INTO `voiture` VALUES ('G7', 'Renault', 'Grand Scenic', '1996-05-05', 'Grise', 6, 'oui');
INSERT INTO `voiture` VALUES ('Drive Motor', 'Ford', 'Focus', '1995-10-01', 'Bleue', 5, 'non');
INSERT INTO `voiture` VALUES ('G7', 'Mercedes', 'Classe E', '2001-09-09', 'Blanche', 5, 'non');
INSERT INTO `voiture` VALUES ('Car Way', 'Renault', 'Laguna', '1995-05-05', 'Grise', 5, 'oui');
INSERT INTO `voiture` VALUES ('Drive Motor', 'Renault', 'Laguna', '1999-07-07', '5', 0, 'oui');
INSERT INTO `voiture` VALUES ('Taxi GOGO', 'Renault', 'Mégane', '2003-09-09', 'Rouge', 5, 'non');
INSERT INTO `voiture` VALUES ('Super Taxi', 'Renault', 'Mégane', '2001-09-09', 'Orange', 5, 'non');
INSERT INTO `voiture` VALUES ('Marivel', 'Ford', 'Puma', '2003-09-09', 'Blanche', 4, 'non');
INSERT INTO `voiture` VALUES ('G8', 'Ford', 'Explorer', '2001-04-05', 'Noir', 4, 'non');
INSERT INTO `voiture` VALUES ('Car Way', 'Ford', 'Courrier', '2001-09-09', 'Blanche', 4, 'non');
INSERT INTO `voiture` VALUES ('Drive Motor', 'Ford', 'Puma', '2003-07-15', 'Verte', 5, 'oui');
INSERT INTO `voiture` VALUES ('Taxi GOGO', 'Mercedes', 'Classe S', '2001-04-05', 'Noir', 5, 'oui');
INSERT INTO `voiture` VALUES ('Super Taxi', 'Mercedes', 'Classe S', '2002-02-02', 'Blanche', 5, 'oui');
INSERT INTO `voiture` VALUES ('A10', 'Renault', 'Laguna', '0000-00-00', 'Grise', 5, 'oui');