In PHP and Oracle, when echoing the variable it does not show the value -


i save oracle query table.

tbl querydata

queryid | query_info 001     | select count(*) total wa_ga_tbl_users to_char(userpassword_expiredate,'yyyy-mm-dd') <= '$getbeforemonth' 002     | select count(*) total wa_ga_tbl_departments 

php

$getbeforemonth = "2017-07-26";  $qwidgetaccess = oci_parse($c1, "     select     w.widgetid,     w.widgetname,     w.widgetdescription,     w.widgetstatus,     w.projectid_fk,     w.widgetquery,     w.widgeticon,     w.projectid_fk,     aw.widgetid_fk,     aw.groupid_fk,     aw.dateadded,     p.projectid,     p.projectname         wa_ga_tbl_widgets w,     wa_ga_tbl_accesswidgets aw,     wa_ga_tbl_projects p         w.widgetid = aw.widgetid_fk ,     w.projectid_fk = p.projectid ,     aw.groupid_fk = '" . $getgroupidfk . "' ,     w.widgetstatus = '2'     order aw.dateadded desc "); oci_execute($qwidgetaccess); while($dwidgetaccess = oci_fetch_array($qwidgetaccess)) { ?>      <div class="textwidget">         <div class="total">         <?php         $qtotal = oci_parse($c1, $dwidgetaccess['widgetquery']);         oci_execute($qtotal);         $dtotal = oci_fetch_array($qtotal);          echo $dtotal['total'];         ?>     </div>      <div class="title"><?php echo $dwidgetaccess['widgetname']; ?></div>      <div class="projectname">         <?php echo $dwidgetaccess['projectname']; ?>     </div> </div> } 

when run query, working queryid 002. query 001 no result , when try print it, show $getbeforemonth, should 2017-07-26.

why happen?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -