• 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

stay with the last 15 elements of an array [duplicate]

Update Order custom Field value with WooCommerce REST API

Could not decode a text frame as UTF-8.

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

Laravel-fopen: failed to open stream: Permission denied

How to set a domain name with php artisan serve

PHPUnit 7: Failed asserting that exception of type InvalidArgumentException is thrown

Get sum of arrays inside array

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

500 Internal Server Error on Ajax request. Not sure the origin of the problem

CodeIgniter 4: Like and Dislike Functionality

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Where do I need to place a hook for phpunit?

Installing Composer - Internal Error

About Contact Privacy policy Terms and conditions