EasyUI Forum
April 23, 2024, 08:50:05 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / General Discussion / Re: error : Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, on: July 30, 2020, 09:29:14 PM
case closed..
error because of there are 2 variables with same names ($rs)..

thx
2  General Category / General Discussion / error : Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, on: July 28, 2020, 01:47:43 AM
Hi,
I got an error on my get_user.php it tells :
Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result,
it is on command :
while($row = mysqli_fetch_object($db,$rs))
Please Help...
and my script are :

<?php
   $page = isset($_POST['page']) ? intval($_POST['page']) : 1;
   $rows = isset($_POST['rows']) ? intval($_POST['rows']) : 10;
   $offset = ($page-1)*$rows;
   $result = array();

   include '../config/connection.php';
        
    $sql="select count(*) from user";
      $rs = mysqli_query($db,$sql);
   $row = mysqli_fetch_row($rs);

   $result["total"] = $row[0];
   $rs = mysql_query("select * from user limit $offset,$rows");
   
   $items = array();
 
   while($row = mysqli_fetch_object($db,$rs)){
      array_push($items, $row);
   }
   $result["rows"] = $items;

   echo json_encode($result);

?>
3  General Category / General Discussion / starting easy ui on: July 27, 2020, 10:38:11 PM
Hi,
Does anyone can help to teach how to build a crud from easyui from 0 (zero)? I try to follow the tutorial but there's something missing about  connection between the tutorial with the database (tables).

Thanks,

Joe
4  General Category / General Discussion / Re: easyui for POS on: July 27, 2020, 02:28:39 AM
are the any demos?

thx
5  General Category / General Discussion / Re: connection to database 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
6  General Category / General Discussion / type of file on: July 26, 2020, 09:14:17 PM
Hi,
I'm new on easyui ..please help to make me understand the language..
I just open the tutorial of creating CRUD on http://www.w3big.com/jeasyui/jeasyui-app-crud1.html
and try to open the syntax into my sublime text.
and my questions are :
1. there are no document type on the script such HTML or PHP on the first line
2. what type of file (extention) should I use for the script?

thx
 
 
7  General Category / General Discussion / 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
8  General Category / General Discussion / easyui for POS on: July 26, 2020, 08:36:21 AM
Hi,
Does easy ui possible for POS (Point of Sales)? or something for parent-child issues?
If there were any demos..please show me..

thx,

Joe
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!