I want to get last login ip according to my data.
Example my current data
----------------------------------------
id uid ip date
-----------------------------------------
1 3 192.168.1.1 2010-11-22 22:25:39
2 3 192.168.1.8 2010-11-23 22:28:12
3 3 192.168.1.3 2010-11-24 00:01:30
4 3 192.168.1.5 2010-11-25 00:20:25
How to get the id 3 as the last login ip?
$select = "SELECT * FROM ip_address WHERE uid='3'";
Try:
…Will return the last IP.
…Will return the whole record.