my php script is working fine in GAE but not on the server. If i run this script on my computer it is working fine , cloud sql database is also updated but this script is not working on cloud. Show error :-
<?php
$conn = mysql_connect('173.194.249.431',
'anurag', // username
'sdsdsZcz' // password
);
if ($conn)
{
echo "connection established";
}
$checkdb = mysql_select_db('test');
if ($conn)
{
echo "database connected";
}
$sql = "INSERT INTO test (name) VALUES (123)";
$retval = mysql_query( $sql, $conn );
if(! $retval )
{
die('Could not get data: ' . mysql_error());
}
echo "successfully done ";
?>