par
scorpking » 30 mai 2006, 14:45
celle là je l'ai vu en refaisant des teste j'a aussi suprimé les retour chariot
<?php
$order = $_POST['orderby'];
$query1 = 'select , s.study_key "study_key" ,s.study_num "study_num" ,s.protocol_num "protocol_num" ,s.other_num "OtherID" ,st.study_type "study_type" ,\'?\' "ProductLicense" ,decode(s.unblind_ok,1,\'Yes\',\'No\') "EligibleUnblinding" ,decode(s.encoding,1,\'Yes\',\'No\') "StudySpecificAutoEnc" ,s.study_desc "study_desc" ,ac.cond_name "InvestigatorAlert" ,s.blind_name "blind_name" ,d1.name "Drugs" ,d2.name "Indications" ,d3.name "EventTerms" ,decode(s.event_no_manual,1,\'Yes\',\'No\') "PreventManual" ,decode(s.event_closure,1,\'Yes\',\'No\') "RequireEvent" from lm_studies s ,lm_study_types st ,cfg_adv_cond ac ,cfg_dictionaries d1 ,cfg_dictionaries d2 ,cfg_dictionaries d3 where s.study_type_id = st.study_type_id and s.alert_ac_id = ac.ac_id (+)and s.deleted is null and st.deleted is null and ac.deleted is null and d1.deleted is null and d2.deleted is null and d3.deleted is null and s.drug_dict= d1.dict_id (+) and d1.usage (+) = 1 and s.event_dict = d2.dict_id (+) and d2.usage (+) = 3 and s.indications_dict = d3.dict_id (+) and d3.usage (+) = 2 order by ';
$query=$query1.$order;
echo '
<html>
<body>';
echo $order;
echo '<p>';
echo $query;
echo '<p> Use this querie? <form method="post" action="essai2.php4">
<input type="hidden" value ="'.$query.'" name ="query">
<input type=submit value="ok" name="send">
</form>
</body>
</HTML>';
mai maintenant il m'affiche select , s.study_key sur mon autre page
edit j'a vu
c'est le " de ma requete qui est interprété est ce que le \ est interprété en html je sais qu'il l'est en php sinon il ne me reste qu'a attaqué ma chaine a coup de \ ou a faire une petite concaténation en remplassant tous le " par \" c'est bien ça
celle là je l'ai vu en refaisant des teste j'a aussi suprimé les retour chariot
[php]<?php
$order = $_POST['orderby'];
$query1 = 'select , s.study_key "study_key" ,s.study_num "study_num" ,s.protocol_num "protocol_num" ,s.other_num "OtherID" ,st.study_type "study_type" ,\'?\' "ProductLicense" ,decode(s.unblind_ok,1,\'Yes\',\'No\') "EligibleUnblinding" ,decode(s.encoding,1,\'Yes\',\'No\') "StudySpecificAutoEnc" ,s.study_desc "study_desc" ,ac.cond_name "InvestigatorAlert" ,s.blind_name "blind_name" ,d1.name "Drugs" ,d2.name "Indications" ,d3.name "EventTerms" ,decode(s.event_no_manual,1,\'Yes\',\'No\') "PreventManual" ,decode(s.event_closure,1,\'Yes\',\'No\') "RequireEvent" from lm_studies s ,lm_study_types st ,cfg_adv_cond ac ,cfg_dictionaries d1 ,cfg_dictionaries d2 ,cfg_dictionaries d3 where s.study_type_id = st.study_type_id and s.alert_ac_id = ac.ac_id (+)and s.deleted is null and st.deleted is null and ac.deleted is null and d1.deleted is null and d2.deleted is null and d3.deleted is null and s.drug_dict= d1.dict_id (+) and d1.usage (+) = 1 and s.event_dict = d2.dict_id (+) and d2.usage (+) = 3 and s.indications_dict = d3.dict_id (+) and d3.usage (+) = 2 order by ';
$query=$query1.$order;
echo '
<html>
<body>';
echo $order;
echo '<p>';
echo $query;
echo '<p> Use this querie? <form method="post" action="essai2.php4">
<input type="hidden" value ="'.$query.'" name ="query">
<input type=submit value="ok" name="send">
</form>
</body>
</HTML>';[/php]
mai maintenant il m'affiche select , s.study_key sur mon autre page
edit j'a vu
c'est le " de ma requete qui est interprété est ce que le \ est interprété en html je sais qu'il l'est en php sinon il ne me reste qu'a attaqué ma chaine a coup de \ ou a faire une petite concaténation en remplassant tous le " par \" c'est bien ça