• 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

Object of class stdClass could not be converted to string error

Losing session data after POST from third party website

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

phpseclib 2.0 can not use Composer to create autoload

file_get_contents() without "Http" to access external URL [closed]

unable to load your default controller on Codeigniter

PHP password_verify

Laravel set default language not working

could not find driver Debian SQL Server PHP

Split a string array into pieces

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Pages are working fine on localhost but not running on the hosting server

Laravel Command Schedule Not Working Properly

AJAX call fails with SyntaxError: Unexpected end of JSON input

About Contact Privacy policy Terms and conditions