Extraction du nom de la table
Résolu/Fermé
A voir également:
- Extraction du nom de la table
- Table ascii - Guide
- Table des matières word - Guide
- Le nom du champ de tableau croisé dynamique n'est pas valide ✓ - Forum Excel
- Trouver un numéro de portable avec un nom ✓ - Forum Mobile
- Trouver un nom avec une adresse ✓ - Forum Loisirs / Divertissements
1 réponse
Bonjour
Il suffit d'ajouter le nom de la table dans le SELECT, en tant que constante et pas en tant que champ bien sûr
Il suffit d'ajouter le nom de la table dans le SELECT, en tant que constante et pas en tant que champ bien sûr
$sql = 'SELECT id_produit,type_produit,ros,client,adresse,adresseb,ville,codepostal,villeb,codepostalb,clientb,'histo' as nomtable FROM histo WHERE UPPER(histo.client) LIKE \'%' . $_GET['clienta'] . '%\' UNION SELECT id_produit,type_produit,ros,client,adresse,adresseb,ville,codepostal,villeb,codepostalb,clientb,'encours' as nomtable FROM encours WHERE UPPER(encours.client) LIKE \'%' . $_GET['clienta'] . '%\'';