Sponsor
Now Playing
- Alix Perez – I'm Free 3 hours ago
- Alix Perez – Intersections 3 hours ago
- Alix Perez – Forsaken 3 hours ago
- Glen E Ston – Ouroboros (Original Mix) 3 hours ago
- Black Sun Empire – Everything 3 hours ago
Howto: Get Number of Rows
April 8, 2008,
353 views
If you have a MySQL table and you want to know how many records there are in this table you can run a query on the entire table for example:
This will show you how many rows were supplied in that query. So if you want to find out how many people are under 18 in your forums you could do something like this:
The time gap gets the time in seconds of 18 years, then subtracts it from the time now. Yay. so now you can limit access to minors :O