• 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

Parameter is not sent to Laravel route in Ajax

Printing more than one array using print_r or any other function in php

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

WooCommerce Subscriptions: Remove role on cancelled subscription

If you intend you use SMTP, add your SMTP Code after this Line

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

How to show a popup modal in codeIgniter?

Confirm Leave on External Links in Wordpress

Fatal error: [] operator not supported for strings

SQL AVG() to 2 decimals

How to override header set in Apache config with more specific header in a virtual host

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

auth pages not getting css in laravel

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

Star rating with half star support

About Contact Privacy policy Terms and conditions