<link href="../assets/css/font-awesome.css" rel="stylesheet" /> <!-- MORRIS CHART STYLES--> <link href="../assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" /> <!-- CUSTOM STYLES--> <link href="../assets/css/custom.css" rel="stylesheet" /> <!-- GOOGLE FONTS--> <link href='../http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' /> <!-- Date Picker --> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"/> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css"/> <script> //alert('<?//= getShop2(); ?>'); var Shop = JSON.stringify(<?php echo getShop2(); ?> ); //alert(Product); //alert(data); var ShopP = JSON.parse(Shop); //alert(ProductP); //data = JSON.parse(www+''); /*alert(data);*/ //document.write(www[0].idshop+www[0].name_shop); var shopName = new Array(); var shopId = new Array(); // var idshop;
<?php require_once dirname(__FILE__) . '/../function/func_addorder.php'; $nameshop = $_GET['q']; $row = getShop2($nameshop); foreach ($row as $value) { $val_name_shop = $value['name_shop']; //$val_price = $value['price_unit']; echo $val_name; }