a Small help about php
#7

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
It will return the number of rows in the database. (which is by the way the least transferring data through the socket, dunno about the performance, but I believe its also faster, because it doesn't have to select anything)

the fastest way to count fields:
PHP код:
$mysqli->query("SELECT * FROM `users` LIMIT 0")->field_count 
Wut ?
You are having a LIMIT 0, That would get no rows at all.. How'd it even work ? :////

E: nvm.. Just saw ur edit :P
He talked to me in skype, And he did want it for rows anyways..
Reply


Messages In This Thread
a Small help about php - by SWAT4 - 05.12.2015, 14:37
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 15:58
Re: a Small help about php - by Kaperstone - 05.12.2015, 16:23
Re: a Small help about php - by SWAT4 - 05.12.2015, 19:42
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 20:00
Re: a Small help about php - by Kaperstone - 05.12.2015, 22:01
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 22:10
Re: a Small help about php - by Kaperstone - 05.12.2015, 22:14
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 22:37

Forum Jump:


Users browsing this thread: 2 Guest(s)