• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Saving Data from form to database using AngularJS and php

javascriptphpdatabaseangularjs


PHP Snippet 1:

    $host = "localhost";
$user = "angular";
$pass = "angular";
$database = "angular";
$con = mysql_connect($host,$user,$pass);
if (!$con) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_select_db($database,$con);

Related Snippets

How to redirect to another page and call a Function there on Angular ng-click

Server-sent events in PHP (without echo or print)

Which is faster php date functions or carbon?

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

Insert database rows from columns of data from associative array of indexed arrays

printing all running session variable in laravel 5.1

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

JQuery content editable div and text box on submit not sending POST

What is the difference between client-side and server-side programming?

Invalid value in field "itemtype" in Google Search Console

Select option menu read from database and use it's values

Limit of log line written to Apache Errorlog from mod php error_log

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

Attempt to read property "view" on null when sending password reset email

About Contact Privacy policy Terms and conditions