• 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

How to properly set "0000-00-00 00:00:00" as a DateTime in PHP

How can I stop a symfony process which is listening on http://127.0.0.1:8000

Adding Multiple Custom Post Types in Wordpress

Make certain characters of a word from string bold

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

PHPExcel file download using AJAX call

add " ? " in url via htaccess RewriteRule

Yii2: How to download backup files using spanjeta/yii2-backup?

Center point of multiple gps coordinates with php

Make Calculator - When Button clicked the No shows in Textbox.

VB.NET WebRequest with PHP POST

Don't show recurring price for WooCommerce subscriptions worth 0$

php code to send checkbox form results to email

Boolean assignment operators in PHP

how to pass row id in href of a tag in codeigniter controller?

About Contact Privacy policy Terms and conditions