• 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

Read users and passwords from a txt file

How to test laravel controller method?

how to fix Service provider class not found when using repository?

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

Laravel 5.5 change unauthenticated login redirect url

Implode array with array of glue strings

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

Can't exclude directories from .htaccess mobile redirect?

Nginx disallowing execution of PHP in uploads directory with Magento

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

Popup Window and PHP form

Transfer data between JavaScript and PHP through JSON

Convert date and time to Jalali in Laravel

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Malformed MIME header error in Symfony 5.3

About Contact Privacy policy Terms and conditions