$qry ="insert into `$table`(Number) values('".$msg2."')";
$result = mysql_query($qry);
If this query is executed from php, a new row is created but no value is getting inserted. Although the id column gets auto incremented. Is there anything wrong with the formatting of msg2?
Please check the datatype of the column – Number in PHPMYADMIN