• 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 5: Is there a non-case sensitive way to sort a collection by an attribute?

Changing font color in javascript

How to make Canonicals with PHP

PHPExcel_IOFactory::createWriter causes wrong behaviour

Return new collection without modifying original collection

Utf8 encoding issue with Laravel

Reload parent page after submit in iframe

Wordpress how to get the post thumbnail inside a figure tag

Laravel Excel::store file empty after stored

What is the difference between client-side and server-side programming?

Issue saving card for customer

Detect a fetch request in PHP

How to get company posts from LinkedIn via API?

I want a way to give path to my files which are outside of public folder in laravel

Check if user online laravel

About Contact Privacy policy Terms and conditions