Not able to insert record in mysql, No error but record not reflecting.
Posted on 2013-01-17
$con = mysql_connect("xxx","xx","x");
die('Could not connect: ' . mysql_error());
$sql="insert into t(name) values('a')";
echo "1 record added";
When i run it on server it shows the "Hello", it shows 1 record inserted but when i see in table no data is there.
What could be the reason or what is the error in code