I cannot insert any records in the MySQL table. Below is the simple PHP connection script and I have attached my very simple B4A project. When a button is clicked the record should be saved. I hope someone can set me straight. Thank you.
B4X:
<?
$databasehost = "xxxxxx.db.1342534.zzzzzzz.com";
$databasename = "proddb";
$databaseusername ="produser";
$databasepassword = "mypassword";
$con = mysql_connect($databasehost,$databaseusername,$databasepassword) or die(mysql_error());
mysql_select_db($databasename) or die(mysql_error());
if (mysql_errno()) {
echo mysql_error();
}else{
print "Successful Connection.";
}
?>
Attachments
Last edited: