1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
$requete_test = "SELECT * FROM(
SELECT `Fichier_id` AS id,
`Fichier_date` AS jour,
`Fichier_nom` AS nom,
'utilisateur' AS u_id,
`Fichier_taille`,
'titre' AS titre,
`Fichier_type` AS type,
'logiciel' AS logiciel,
`Fichier_desc` AS dscript
FROM `tab008_fichiers`UNION ALL SELECT `Model_id`,
`Model_date`,
'nom',
`Utilisateur_id`,
'taille',
`Model_titre`,
'type',
Model_logiciel`,
`Model_desc` FROM `tab006_models3d`) AS t ORDER BY t.jour DESC LIMIT 1";
$resultat_test = mysql_query($requete_test);
$stest=mysql_fetch_array($resultat_test);
echo $stest['nom']; |
Partager