• 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

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

Use Python plotly chart in PHP

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

SQL to convert multiple rows into a single row of variable length

how to see if database exists with PDO [duplicate]

dockerizing Laravel + vue

Form repeater send wrong data with last element in Laravel

With doctrine ODM, can I embed many subdocuments in a main document?

browsersync doesn't work with XAMPP

MySQL upgrade causing unexpected results on simple WHERE clauses

500 (Internal Server Error) with Laravel & Docker [duplicate]

how to insert data into select2 search input after scan using qrcode

PHP Form Not Inserting

ConstraintViolationListInterface to Exception in Symfony

About Contact Privacy policy Terms and conditions