Category: linux

11788381-php-mysql-development 0

How to get the last inserted ID in a MySQL database using PHP

If you perform an insert into a mysql database table containing an AUTO_INCREMENT field, you can retrive the ID of the last inserted record without execute any query. Let’s start with an example. In...

timers 0

GetTimeOfDay in .NET

While porting programs from linux to .Net architecture you could face the gettimeofday function… The functions gettimeofday(struct timeval *tv, struct timezone *tz) gets the time as well as timezones. The tv argument is a...