"; if ($def == 0) $result .= ""; $sql = "SELECT * FROM get_shops;"; $query = mysqli_query($con, $sql); while ($r = mysqli_fetch_assoc($query)) { $id = $r['id']; $name = $r['name']; $selected = $def == $id ? 'selected' : ''; $result .= ""; } $result .= ''; return $result; } function selectStatus($con, $sel, $def) { $result = ''; $result .= "'; return $result; } function showOrders($con) { if (isset($_REQUEST['orders_show'])) { global $data; $ord_id = $data[0]; $ord_user = $data[1]; $ord_shop = $data[2]; $ord_status = $data[3]; $sql = "CALL selectOrds('$ord_id', '$ord_user', $ord_shop, $ord_status);"; $query = mysqli_query($con, $sql); echo '
'; } }