Tuesday, August 04, 2009

Adding leading zero’s and id’s with php

For a project of that require a running number in php we should put a number that format to make it works..just found this code from this blog

code for the id from MySQL
$fuckksssssss = mysql_insert_id();

code for the seven digits
$fuckksssssss = sprintf(”%07d”,$fuckksssssss );



ve fun yahhhhh

No comments:

Locations of visitors to this page
DROP ME A MSG :D