• 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

oauth-private.key does not exist or is not readable

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

Dropzone: Submit both form data and dropzone at once

how to make my own auto increment in php?

How to fix Call to undefined method AppModelsTableName::factory?

Message: Set sys_temp_dir in your php.ini after installed composer

PHP: Print caught exception like Xdebug

How to skip cart page on woocomerce for certain products only?

Change the alert text on add to cart action without selected variation in Woocommerce

Trying to iterate over a mongodb cursor twice - failing

Fatal error: Array callback has to contain indices 0 and 1

How to get values inside <![CDATA[values]] > using php DOM?

Generate random username based on full name php

I want to display a sweetalert after the inserting of data in my database

get folder directory from input type file - PHP

About Contact Privacy policy Terms and conditions