• 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 5.2: Unable to locate factory with name [default]

How can I format this number correctly using PHP?

Comma separated list from array with "and" before last element

How to prevent phpmailer sending embedded image as an attachment on Gmail?

PHP drop down list using array's and foreach (else and for) code

PHP usort() order in case of equality

yii2 and mssql insert varbinary into model

how do i retrieve and display the alt text of an image in wordpress?

HTML + PHP + PHPMAILER

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

PDOException SQLSTATE[HY000] [2002] No such file or directory

I want a way to give path to my files which are outside of public folder in laravel

PHP DOTENV unable to load env vars

Transfer data between JavaScript and PHP through JSON

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

About Contact Privacy policy Terms and conditions