• 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

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

Combine array with same value and add other [duplicate]

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Trying to iterate over a mongodb cursor twice - failing

CodeIgniter 3 is generating a session file on each request, why?

args[max_input] woocommerce if statement confused

OctoberCMS / Anonymous Global Scope

Explode not working properly with dash

How to get transaction details in notify_url page in paypal

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

Combining a describing and one array with data

PHP - CURL using HTTPS [closed]

How to submit a form when page loads using JavaScript?

Laravel Multi-language routes without prefix

About Contact Privacy policy Terms and conditions