echoing content from another funtion php script

ساخت وبلاگ

Vote count: 0

Hi I need help about echoing message from another function, below is my script, in my database is already set the product_quantity is 0, but not able show the alert message, its that anything wrong in the code?

function get_products_in_cat_page(){
$query = query(" SELECT * FROM products WHERE product_category_id = " . escape_string($_GET['id']) . " ");
confirm($query);
if(mysqli_num_rows($query) == 0) { set_message("Will update soon the new products");
} else {
while($row = fetch_array($query)) {
$product_image = display_image($row['product_s_image']);
$outofstock = out_of_stock(); //--this is alert message I echoing from another function like below --//
$product = <<
{$row['product_title']} {$outofstock}
asked 26 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 216 تاريخ : سه شنبه 5 ارديبهشت 1396 ساعت: 23:54