• 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 pass security cloudflare server with php curl

How to make a array inside array?

Laravel Collections. Is there some kind of assertStructure method?

MySQL - Connection failed: No route to host

Sagepay Error The Vendor failed to provide a RedirectionURL

Calculating Median of an array in PHP

php - add comma thousands separator but remove trailing zeros

Laravel dosen't connect with Oracle

Applying programmatically a coupon to an Order in WooCommerce3

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

Dynamic table in HTML using MySQL and php

Image upload not working through ajax Laravel

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

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

How to submit a form when page loads using JavaScript?

About Contact Privacy policy Terms and conditions