Posté le: Ven Mar 10, 2006 16:45 Sujet du message: récupération de données
--------------------------------------------------------------------------------
Dans ma requête $rq1 je voudrais récupérer STAR_TARIF pour l'enregistrer dans une autre table. Mais le problème c'est que je n'arrive pas à le récupérer. Je sais pas si dans mon insert je dois utiliser un fields[1]
pour récupérer le tarif
$rq1="SELECT STAR_TARIF
FROM tarifs
WHERE SAL_CODE=$SAL_CODE and TYPCLI_CODE in ( select Clients.TYPCLI_CODE from clients,typeclients,tarifs
where clients.TYPCLI_CODE=typeclients.TYPCLI_CODE and typeclients.TYPCLI_CODE=tarifs.TYPCLI_CODE and CLI_CODE=$CLI_CODE)";