• 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

ldap is missing from system when installing adldap2 in laravel

CodeIgniter extend CI_URI undefined method

Pages are working fine on localhost but not running on the hosting server

Zig-zag scan an N x N array

Laravel Multi-language routes without prefix

Laravel: Why is my variable not being set while it's in the construct function of the controller?

Detect if PHP session exists

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

Additional price based on cart item count in WooCommerce

Combine array with same value and add other [duplicate]

PHP array, move keys and values to new array, but mix it up

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

PHPUnit (Phar) Fatal Error Only When Test Fails

Redirect to previous page with php

How to MODIFY a Google Docs document via API using search-and-replace?

About Contact Privacy policy Terms and conditions