EasyUI Forum
September 15, 2025, 02:39:21 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Using $_GET with EasyUI not working  (Read 5449 times)
nprioleau
Newbie
*
Posts: 12


View Profile
« on: March 09, 2016, 11:45:11 AM »

I want to build an embedded grid. I have success with the master detail but when trying to get the detail records, I don't get a result. I am using PHP Version 5.6.3. My code returns a json_result if I run it on it's own. The code as follows:

<?
require('kernal.php');

$itemid=mysqli_real_escape_string($db, $_REQUEST['id']);
print $itemid;
//print $itemid;
//$itemid=$_REQUEST['id'];
//print $itemid;
// Get sales
$getRows = $db->query(sprintf("SELECT *, p.prod_productID, p.prod_productName FROM sales_detail inner join products p on p.prod_productID = salesd_productID WHERE salesd_salesID = '$itemid' GROUP BY salesd_ID")) or SQLError();

while($row = $getRows->fetch_assoc()) {
    $rows[] = $row;
}
$smarty->assign('rowsNum', $total);
$smarty->assign('rows', $rows);
echo json_encode($rows);

?>

I have more or less copied the code from the demo site.
Can anyone help me please?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 10, 2016, 08:44:25 AM »

Please make sure your code can return the correct json data back to the browser.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!