Commit 06035eaf by Jansa Jose

medical

parent 3d44e362
......@@ -3190,11 +3190,11 @@ class Webservice_model extends CI_Model {
$prescrib = json_decode(decrypt_data($res->prescribtions));
$med = array();
print_r($prescrib);echo"<br>";
//print_r($prescrib);echo"<br>";
if(isset($prescrib)){
foreach ($prescrib as $key => $value) {
$med_data = $this->db->get_where('tbl_medicine',array('medicine_name'=>$value->name,'medicine_dosage'=>$value->quantity))->row();
print_r($med_data);
//print_r($med_data);
$med[$key]['id'] = $med_data->id;
$med[$key]['medicine_name'] = $value->name;
$med[$key]['dosage'] = $value->procedure;
......
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