• 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

Split a string array into pieces

Valet, Xdebug after reboot Big Sur not working

Alert message after submitting form in PHP

how to pass row id in href of a tag in codeigniter controller?

How to change product Image when variables are selected in Shop and Archive Pages?

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

Redis Command To Sort Keys

How to auto populate preferredCountries from intl-tel-input with db output

Sentry on Symfony: how to exclude `NotFoundHttpException`

Laravel Model save() & update() Not Saving

Pagekite error: FAIL: localhost:8080 is down

get attribute from class not working php 7

zsh: command not found: php

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

How to read laravel_session cookies saved in cookie memory of browser in client side?

About Contact Privacy policy Terms and conditions