• 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

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

How to convert the int value to inch in PHP [closed]

carbon generated datetime not stored correctly into the database

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

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Two buttons one form

Laravel passport auth token not working after moving to different server

MySQL order by field in Eloquent

Prevent blank space in pdf pages (DomPdf)

file_get_contents() without "Http" to access external URL [closed]

How to redirect to another page and call a Function there on Angular ng-click

Add rows to Single product Additional information table in WooCommerce 3.6

find in set in laravel ? example

WHERE IN array binding in DB::raw laravel 5.4

Reload parent page after submit in iframe

About Contact Privacy policy Terms and conditions