• 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

How to separate letters and digits from a string in php

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

carbon generated datetime not stored correctly into the database

How to run or debug php on Visual Studio Code (VSCode)

How can I make a full text index of the column?

Navigation idle on content download

how to validate form data in codeigniter 4

Yii Ajax Submit button

Transfer data between JavaScript and PHP through JSON

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

generate an Excel file using PHP

How to get Laravel's CSRF Token from Another Website?

Create a zip file and download it

how to identify the web server name of remote host

How to get array values using foreach in laravel

About Contact Privacy policy Terms and conditions