• 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 separate letters and digits from a string in php

AJAX call fails with SyntaxError: Unexpected end of JSON input

onKeyUp event calculation not working on the following rows from php generated forms except the first one

Unable to run composer install

PHP only Hit Counter?

Laravel whole batch is cancelled if one Job fails

How to install LDAP in Docker php-fpm alpine

PHP: convert all UTF-8 characters to HTML entities

How to downgrade or install a specific version of Composer?

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

PHP Find Array Index value in multi-line array

How to loop sql table data inside a html table

Remove categories with all childs derived from parent category

How do I enable error reporting in Laravel?

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

About Contact Privacy policy Terms and conditions