• 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

Ajax GET request fails in laravel 8

PHP | "The requested PHP extension bcmath is missing from your system."

Dynamic table in HTML using MySQL and php

Cant seem to get the Pagination to work on my WooCommerce REST API application?

Facebook PHP SDK - will not logout properly

calling server using nusoap with complextype

PDOException SQLSTATE[HY000] [2002] No such file or directory

disable two buttons after clicking another button

Jquery DataTables: Data not displaying in table via Ajax

php script to delete files older than 24 hrs, deletes all files

PHP Find Array Index value in multi-line array

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

how to check version of codeigniter framework?

Detect emoticons in string

Redis Command To Sort Keys

About Contact Privacy policy Terms and conditions