• 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

Symfony - "framework.test" config is not set to true

Laravel 5.1 Unknown database type enum requested

GRPC installed successfully on ubuntu but php is looking for it in another folder

Symfony Mercure "Failed to send an update"

Required field only if another field has a value, must be empty otherwise

Getting values for an enum?

PHP | "The requested PHP extension bcmath is missing from your system."

How to convert the int value to inch in PHP [closed]

Error Class "LaravelFortifyFeatures" not found

Laravel Delete and Update

how to check version of codeigniter framework?

Display Link Title Instead of URL in XSL

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

Having trouble with PDO queries (Notice: Undefined index)

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

About Contact Privacy policy Terms and conditions