EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 15, 2025, 02:39:21 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Using $_GET with EasyUI not working
Pages: [
1
]
« previous
next »
Print
Author
Topic: Using $_GET with EasyUI not working (Read 5449 times)
nprioleau
Newbie
Posts: 12
Using $_GET with EasyUI not working
«
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
Re: Using $_GET with EasyUI not working
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...