• 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

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

Convert date and time to Jalali in Laravel

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Laravel relationship belongsToMany with composite primary keys

PHP rotate matrix counter-clockwise

Dynamic table in HTML using MySQL and php

Sum array values

PHP Include for HTML?

How can i hide dt if dd got empty value

How to test a php login connected to a mysql db through xampp?

Star and Half Star Rating in Laravel

How to install php_imagick on wamp64

PHP header location absolute URL

Elastic Beanstalk with Laravel Envoy

MySQL - Connection failed: No route to host

About Contact Privacy policy Terms and conditions