Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
MISSING DATA on data fetch

I am currently facing this issue that i never came accross.

When i run SQL query directly from PHPMyAdmin it shows total of 5 rows of 5 rows of data. However when i run this same query from a php script it shows only 2 rows out of 5.

its same sql code but not sure why its showing less data.

I have tried to restart mysql database but did not resolve the issue.

This is the SQL code.

 $today = date("Y-m-d");     
Select `pwd_orders_new`.*, SUM(item_price*qty) AS 'Total' From `pwd_orders_new` WHERE txn_id <> '' AND DATE(`adddate`) = '$today'  GROUP BY txn_id   ORDER BY `pwd_orders_new`.`id` DESC   LIMIT 0,20000

PHP CODE:

$_dbObj= new EPOS(DBHOST,DBNAME,DBPW,DBNAME);
$table = $_dbObj->get_orders_onList($id);

while($row = mysqli_fetch_assoc($table)){
$rows['orders'][] =$row;    
}
print_r(json_encode($rows));

Any help?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!