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
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 $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)";
Partager