Commit 9f696cac by Jansa Jose

Merge branch 'jansa'

parents ef36f658 3d44e362
...@@ -3190,6 +3190,7 @@ class Webservice_model extends CI_Model { ...@@ -3190,6 +3190,7 @@ class Webservice_model extends CI_Model {
$prescrib = json_decode(decrypt_data($res->prescribtions)); $prescrib = json_decode(decrypt_data($res->prescribtions));
$med = array(); $med = array();
print_r($prescrib);echo"<br>";
if(isset($prescrib)){ if(isset($prescrib)){
foreach ($prescrib as $key => $value) { foreach ($prescrib as $key => $value) {
$med_data = $this->db->get_where('tbl_medicine',array('medicine_name'=>$value->name,'medicine_dosage'=>$value->quantity))->row(); $med_data = $this->db->get_where('tbl_medicine',array('medicine_name'=>$value->name,'medicine_dosage'=>$value->quantity))->row();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment