• 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

Laravel Multi-language routes without prefix

javascript html popup window

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

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

Twig - How to check if variable is a number / integer

Add customer email and phone in "Order" column to admin orders list on Woocommerce

Fatal error: [] operator not supported for strings

how to hide previous markers when new markers added in google map javascript api

Extract string between first whitespace and last whitespace in php

How to install PHP composer inside a docker container

PHP each() function replacement

How to loop a tree array with unknown depth and get array blocks?

Insert database rows from columns of data from associative array of indexed arrays

How to show a popup modal in codeIgniter?

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

About Contact Privacy policy Terms and conditions