le 29/09/2013 à 00:35
recupérer la valeur retournée lors du select [liste déroulante]
Tu peux donner le code que tu utilises ? N'oublie pas le bbcode pour mettre en forme ton code ;)
Ensemble a:
(a 0 0) (a 0 1) (a 0 2)
(a 1 0) (a 1 1) (a 1 2)
(a 2 0) (a 2 1) (a 2 2)
Ensemble b:
(b 0 0) (b 0 1) (b 0 2)
(b 1 0) (b 1 1) (b 1 2)
Ensemble a×b
(a 0 0) (a 0 1) (a 0 2) (b 0 0) (b 0 1) (b 0 2)
(a 0 0) (a 0 1) (a 0 2) (b 1 0) (b 1 1) (b 1 2)
(a 1 0) (a 1 1) (a 1 2) (b 0 0) (b 0 1) (b 0 2)
(a 1 0) (a 1 1) (a 1 2) (b 1 0) (b 1 1) (b 1 2)
(a 2 0) (a 2 1) (a 2 2) (b 0 0) (b 0 1) (b 0 2)
(a 2 0) (a 2 1) (a 2 2) (b 1 0) (b 1 1) (b 1 2)
select * from a, b;
Ensemble a×b si (a 0) égal (b 0) sinon null
(a 0 0) (a 0 1) (a 0 2) (b 0 0) (b 0 1) (b 0 2)
(a 1 0) (a 1 1) (a 1 2) ( null) ( null) ( null)
(a 2 0) (a 2 1) (a 2 2) ( null) ( null) ( null)
select * from a left join b on a.0 = b.0;
Ensemble a×b si (a 0) égal (b 0)
(a 0 0) (a 0 1) (a 0 2) (b 0 0) (b 0 1) (b 0 2)
select * from a right join b on a.0 = b.0;
<form action="." enctype="multipart/form-data" method="post">
<p>
<label>Lien&nsp;: <input name='url'>
<input type='submit' value='Ajouter'>
</p>
</form>
<?php
if($_SERVER['REQUEST_METHOD'] === 'POST')
{
// Traitement des données soumises par le formulaire
}