• 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

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

How to use React Router with Laravel?

PHP DOTENV unable to load env vars

Laravel Delete and Update

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

Getting values for an enum?

selected value from the listbox in php

How to edit Records using CodeIgniter

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

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

How to change HTML structure inside WP <head>

How to break out of a foreach once a condition is met?

sort() not affecting original array while inside foreach loop

Change user role if checkout custom checkbox is checked in WooCommerce

Detect a fetch request in PHP

About Contact Privacy policy Terms and conditions