• 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

Creating a config file in PHP

file_get_contents() without "Http" to access external URL [closed]

Get sum of arrays inside array

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

Form repeater send wrong data with last element in Laravel

wordpress function breaks wp-admin

Get keys from associative array [duplicate]

Inserting data into SQL Server Db An Invalid direction was specified

Wordpress how to get the post thumbnail inside a figure tag

Laravel multi auth - Authentication user provider [] is not defined

Upload a file Using PHP and JavaScript

PHP Find Array Index value in multi-line array

Laravel Database Strict Mode

Image upload not working through ajax Laravel

laravel automatically deletes server.php on php artisan serve

About Contact Privacy policy Terms and conditions