• 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

protect images from being copied

Laravel Mix Uncaught ReferenceError: $ is not defined

Populate Dynamic Dropdowns List in Codeigniter

How to get an Array value inside an object in an array Php [duplicate]

Attempted to call an undefined method named "get" of class "MailController"

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Laravel Livewire: jQuery not working in child component loaded via @if statement

Undefined Array Key error when uploading image on php

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

Convert date and time to Jalali in Laravel

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

Google API Heatmap Layer exception, why?

Toggle between a textbox and a select using PHP

How to check user Permissions using Custom Middleware in Laravel

Ajax GET request fails in laravel 8

About Contact Privacy policy Terms and conditions