use php as a backend and mysql as database

$http({
 method: 'POST',
url: 'downvoteAns.php',
data: list
}).success(function (response) {
  //$window.alert(response);
});
you can use it to send data to phpmyadmin there you can get data as 

$data = file_get_contents("php://input");

$login='root';
$host='localhost';
$password='password';
$resultArray=array();
$con=mysql_connect($host,$login,$password)or die("cannot connect");
mysql_select_db("database",$con);

$query = 'DELETE FROM 'table` WHERE `project_question_id` = 
'.$project_question_id.' AND `user_id` = '.$user_id.'' ;
$result = mysql_query($query) OR die(mysql_error()); 

and in this way you can update delete insert into database




-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to