Display a map with today's records only |
6/17/2016 2:55:17 PM |
PHPRunner Tips and Tricks | |
![]() Q: Is the a way to display GPS locations (map markers) by date or put "WHERE" clause into Geo coordinates sql statement? Basically, new geo coordinates will be added everyday and I need to display only those that where inserted into database on a specific day? SELECT * FROM mytable WHERE DATE(posted) = CURDATE()
|
|
![]() |
lefty 6/17/2016 |
Q: Is the a way to display GPS locations (map markers) by date or put "WHERE" clause into Geo coordinates sql statement? Basically, new geo coordinates will be added everyday and I need to display only those that where inserted into database on a specific day? A: Simply add a WHERE clause to the SQL query of the table where you insert your map. For instance to select today's data you can use something like this: SELECT * FROM mytable WHERE DATE(posted) = CURDATE()
|