• 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

Laravel Multi-language routes without prefix

PHP error: "The zip extension and unzip command are both missing, skipping."

Python - Include another Python script

laravel MVC execution flow

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

WHM Enabling mod_rewrite

target [LaravelFortifyContractsRegisterViewResponse] is not instantiable

how to retrieve the first and last instance of a row in pdo dataset

Dropzone: Submit both form data and dropzone at once

Log a user out of a website when they put their computer to sleep

SMTP ERROR: MAIL FROM command failed: 530 5.7.0 Must issue a STARTTLS command first when using PHPMailer

Target Individual Form Instance/Counter Inside A PHP While Loop

Yii Ajax Submit button

Can we define variables in `.tpl` files?

How to send parameters in soap request in php in __soapcall() function

About Contact Privacy policy Terms and conditions