• 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

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

Laravel You requested 1 items, but there are only 0 items available

phpMyAdmin Accepts NULL in the NOT NULL field

PHPExcel file download using AJAX call

Laravel eloquent update record without loading from database

Form repeater send wrong data with last element in Laravel

PHP -> Next nearest date defined by array of days in week

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

Laravel update hasMany relationship using saveMany

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Laravel SQL query midnight time not showing

PHP if in_array() how to get the key as well?

PHP - CURL using HTTPS [closed]

Adding hreflang tags automatically in WordPress subdirectory multisite

How to properly start Laravel 8 with Bootstrap & authentication

About Contact Privacy policy Terms and conditions