• 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

Best way to scrolldown onpageload

Can't call javascript alert alertify library from PHP

AJAX call fails with SyntaxError: Unexpected end of JSON input

Facebook PHP SDK - will not logout properly

How to implement placeholder in a php file for moodle plugin?

How in Laravel run JavaScript code stored in php variable?

MySQL - Connection failed: No route to host

How to access a var with "-" in PHP [duplicate]

Handling expired token in Laravel

Render the content of default_filter.php in Joomla front-end

How do I get friend list from Friends table with counts of friends of my friends

SilverStripe unable to populate multiple member Childs

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

cakephp save drag and drop list order to database

Changing font color in javascript

About Contact Privacy policy Terms and conditions