• 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

Confirm Leave on External Links in Wordpress

Clients authentication and user authentication with laravel

How to add a custom field to all Woocommerce attribute terms using add_action

How to write PHP in XSLT

How to pass security cloudflare server with php curl

Two buttons one form

how to loop through json response data using ajax jquery?

Query Optimization, changing the queries in the loop into a single processing query

Read users and passwords from a txt file

Unable to match results of php hash_hmac() and coldfusion hmac()

Composer fails with kylekatarnls/update-helper on new homestead

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

Detect a fetch request in PHP

How to remove index.php and index from the URL using htaccess | PHP

Add and update products to session cart in Laravel

About Contact Privacy policy Terms and conditions