Query result
This commit is contained in:
@@ -229,12 +229,19 @@ class Provision extends BaseController
|
|||||||
$provisionUID = trim($provisionUID);
|
$provisionUID = trim($provisionUID);
|
||||||
$mysql = "SELECT FROM members_products WHERE uid::text = '$provisionUID'";
|
$mysql = "SELECT FROM members_products WHERE uid::text = '$provisionUID'";
|
||||||
$query = $this->db->query($mysql);
|
$query = $this->db->query($mysql);
|
||||||
$result = $query->getResult()[0];
|
|
||||||
|
|
||||||
$product_template = $result["product_template"];
|
if ($query->num_rows() > 0) {
|
||||||
$custom_template = $result["custom_template"];
|
$result = $query->result(); // Get results as an array of objects
|
||||||
|
// Process results
|
||||||
|
$product_template = $result["product_template"];
|
||||||
|
$custom_template = $result["custom_template"];
|
||||||
|
|
||||||
|
log_message('critical', "***** ***** assignProvideImageName ProductTemplate: $product_template CustomTemplate: $custom_template ");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
log_message('critical', "***** ***** assignProvideImageName ProductTemplate: $product_template CustomTemplate: $custom_template ");
|
|
||||||
|
|
||||||
return $PROVISION_IMAGE_NAME;
|
return $PROVISION_IMAGE_NAME;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user