access all php array rows using mysql limit clause -


using following method mysql query limit clause, if try access array values using foreach loop, display limited rows inside $query_data array per limit clause.

while ($row = mysqli_fetch_assoc($result1))  {     $query_data[] = $row;    } 

array $query_data contains 8 rows result-set. if limit clause of query set 0,3 display 3 records array values.

is there way fetch records ignoring limit clause every time @ place using foreach or other loop?

no. limit clause means data not fetched. if wish fetch additional data, must rid of limit clause.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

Python Error - TypeError: input expected at most 1 arguments, got 3 -

dns - How To Use Custom Nameserver On Free Cloudflare? -