• 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

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

How to get AJAX to post on second page?

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

Toggle between a textbox and a select using PHP

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

MISSING UPDATES FOR: MEDIA Drupal 9

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

Star and Half Star Rating in Laravel

Laravel update hasMany relationship using saveMany

Make survey at laravel 5.4 and MySQL

How to MODIFY a Google Docs document via API using search-and-replace?

Reload parent page after submit in iframe

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Call to undefined function openssl_decrypt

About Contact Privacy policy Terms and conditions