• 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

PHP | "The requested PHP extension bcmath is missing from your system."

How to Display Data in Yajra Datatables Laravel 7?

How to get multiple values with same key from an array PHP

Insert And Retrieve Data in MySQL with $.post Noob Question

Redis Command To Sort Keys

How do I Post to .txt document before form submits

how to prevent float variables displaying as scientific notation when printing [duplicate]

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

Why rand() every time I refresh the page?

Select option menu read from database and use it's values

PHP: How to quickly split a key=value file into associative array

Unable to run composer install

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

How do I get friend list from Friends table with counts of friends of my friends

Pass an image through AJAX [duplicate]

About Contact Privacy policy Terms and conditions