• 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

Call to a member function givePermissionTo() on null

How to override header set in Apache config with more specific header in a virtual host

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

How to loop a tree array with unknown depth and get array blocks?

How to KeyBy where multiple items have the same key

What is PHP's equivalent of JavaScript's "array.every()"?

PHP -> Next nearest date defined by array of days in week

Changing font color in javascript

Combine multiple columns into an array as one of the key in a results set

What is the function of the (new Date()).getTime() in PHP?

Laravel 5.2: Unable to locate factory with name [default]

Laravel 5 session not persisting after user is logged in

Two buttons one form

curl returning 301 error after migrating to https

sort() not affecting original array while inside foreach loop

About Contact Privacy policy Terms and conditions