• 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

virtctl works when executed via command line but not from php exec()

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

How to write PHP in XSLT

Transfer data between JavaScript and PHP through JSON

Laravel set default language not working

codeigniter 4 running error first time with xampp

Composer Script echo

How to convert the int value to inch in PHP [closed]

How to get transaction details in notify_url page in paypal

How to edit Records using CodeIgniter

Explode not working properly with dash

Popup Window and PHP form

Laravel implode array items to new lines

Laravel get user data with profile

Wordpress wpdb->delete issue

About Contact Privacy policy Terms and conditions