• 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 Get value from JSON [duplicate]

Image upload not working through ajax Laravel

Xdebug can't connect back to Docker host

How can I format this number correctly using PHP?

How to get quarter for future date using Carbon?

Laravel php artisan serve to mimic HTTPS

Best way to scrolldown onpageload

protect images from being copied

Yii2: How do I debug console commands?

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

Add rows to Single product Additional information table in WooCommerce 3.6

How can I make Laravel return a custom error for a JSON REST API

Filter array by skipping every nth element from the end

Reducing authentication calls on external API (Laravel 5.6)

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

About Contact Privacy policy Terms and conditions