No. You can do insert and update queries with the existing PHP code.
I would like to ask a question about getting info from database.
I`ve use the tutorial and successfully i retrieve information from the database. Now i have problem in insert into query.
What do you mean we can do insert and update queries with the existing PHP code??
The code in php file that i use to make a select query is look like this:
$databasehost = "xxxx";
$databasename = "xxxx";
$databaseusername ="xxxx";
$databasepassword = "xxxx";
$con = mysql_connect($databasehost,$databaseusername,$databasepassword) or die(mysql_error());
mysql_select_db($databasename) or die(mysql_error());
$query = "Select * from Users";
$sth = mysql_query($query);
if (mysql_errno()) {
header("HTTP/1.1 500 Internal Server Error");
echo $query.'\n';
echo mysql_error();
}
else
{
$rows = array();
while($r = mysql_fetch_assoc($sth)) {
$rows[] = $r;
}
print json_encode($rows);
thanks