• 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

HTML + PHP + PHPMAILER

Hi, I am making a contact form thingy, and my php isn't working any reason why?

How to insert data from multiple select dropdown values into database?

How to install php_imagick on wamp64

Symfony/Form add attribute based on the data

nginx err_connection_refused, can anyone help me?

Converting array to string and then back in PHP

How Can I Do LIMIT 1, 2 In WP_Query

Inserting data into SQL Server Db An Invalid direction was specified

How to add automatically collapse/expand in content wordpress (single.php)?

How to create laravel storage symbolic link for production or sub domain system?

WordPress - Dynamically add user ID to the end of a URL

I cannot create a auto generated date time in mysql workbench

Composer Script echo

Timber: Single post pagination does not work (wp_link_pages)

About Contact Privacy policy Terms and conditions