• 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

Where do I need to place a hook for phpunit?

LARAVEL: How to fetch id dynamically in a query builder?

Shortcode or PHP inside a shortcode in Wordpress

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

Select option menu read from database and use it's values

how to hide previous markers when new markers added in google map javascript api

Pagekite error: FAIL: localhost:8080 is down

How to identify whether webp image is static or animated?

Display the default discounted price and percentage on Woocommerce products

how to retrieve the first and last instance of a row in pdo dataset

How to convert a carbon into string, to take the date only?

Xdebug can't connect back to Docker host

Need to display only array value in JSON output

How avoid Moved Permanently The document has moved here

How should I get started using PHPUnit as a testing framework for a bunch of functions and classes I have already made?

About Contact Privacy policy Terms and conditions