I want to insert into DB 000001 and 000002 and .... but inserting 1 and 2..
any body help me to solve this problem
my code is
$b = mysql_query("SELECT MAX(app_number) FROM tb2_payment ")or die(mysql_error());
while($row_b = mysql_fetch_array($b)){
$app_number=$row_b['MAX(app_number)'];
if($app_number=="")
{
$app_number2=000001;
}
else
{
$app_number2=$app_number+1;
}
}
echo $app_number2;