• 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

Only on Firefox "Loading failed for the <script> with source"

XDebug not working in VScode for php debugging

PHP Slim Framework request using withAttribute error

Reading input in php from terminal

shell errors running php exec

Having issue with matching rows in the database using PDO

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

Can I write PHP code across multiple lines per statement?

printing all running session variable in laravel 5.1

Laravel Excel::store file empty after stored

Warning: sqlite_query() expects parameter 1 to be resource, string given

How to override header set in Apache config with more specific header in a virtual host

How to get company posts from LinkedIn via API?

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

About Contact Privacy policy Terms and conditions