am working php+mySql
i am trying to do a simple insert command :
$query2=\"INSERT INTO tblPrint (OrderNum,PrinterNum,DateTimeVal) Values(\'$order_num\',\'$radio\',\'$tmpDateTimeVal\')\";
when i havethis values :
$order_num=313.517;
$radio=1;
$tmpDateTimeVal=date(\"Y-m-d H:i:s\");
when i check the mysql i see that the order_num value
is for some reason 3.517 ?!?!?!?!?!
why is that?any idea????
the more intresting if i do the same line with the same values it tels me its a duplicate key!!!!!!
but if i chek it from php with a select it tells m that that vakue dosent exist!!!!!!!!
help dont know what else to do!
after i did al of tht i did :