EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
October 16, 2024, 12:34:14 AM
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
>
General Discussion
>
connection to database
Pages: [
1
]
« previous
next »
Print
Author
Topic: connection to database (Read 9136 times)
joe007
Newbie
Posts: 8
connection to database
«
on:
July 26, 2020, 08:49:44 AM »
Hi,
I'm new on easyui..does anyone know how to connect the data grid with a table on database.
thx,
Joe
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: connection to database
«
Reply #1 on:
July 27, 2020, 12:21:37 AM »
This tutorial shows how to create a database table and retrieves data using a php script.
Please look at this tutorial
https://www.jeasyui.com/tutorial/app/crud.php
Logged
joe007
Newbie
Posts: 8
Re: connection to database
«
Reply #2 on:
July 27, 2020, 02:27:57 AM »
Hi,
Firstly thanks for the respon. I've read the script as below :
$rs = mysql_query('select * from users');
$result = array();
while($row = mysql_fetch_object($rs)){
array_push($result, $row);
}
echo json_encode($result);
my next questions are :
1. Where are the database? it's only users table
2. I can not see the user, password, and db of those script
thx,
Joe
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...