I am making an iOS app for which I have made the RDS mysql on amazon any idea how to connect the amazon RDS in iOS.
<?php
// we connect to example.com and port 3307
define("HOST", "dbinstance.jjjjj.us-east-1.rds.amazonaws.com");
define("USER", "test"); // Replace the ??'s with your database user login name
define("PASSWORD", "test"); // Replace the ??'s with your database user's login password
define("DB", "test"); // Replace the ??'s with your database name
$connection = mysql_connect(HOST, USER, PASSWORD) or die(mysql_error());
$database = mysql_select_db(DB) or die(mysql_error());
?>