• 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

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

auth pages not getting css in laravel

MISSING UPDATES FOR: MEDIA Drupal 9

Respond with status code 401 on authentication failure using Laravel and Passport?

How do I do HTTP basic authentication using Guzzle?

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

Yii Ajax Submit button

If you intend you use SMTP, add your SMTP Code after this Line

What is the difference between client-side and server-side programming?

Add 2 Webcam in one page with WebcamJS

backup files to google drive using PHP

Why isn't my PHP exception working?

How can I easily switch between PHP versions on Mac OSX?

Getting public posts of a random user from Facebook API

how to make my own auto increment in php?

About Contact Privacy policy Terms and conditions