• 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

laravel 5.6 bulk inserting json data

Laravel - How to properly generate unique slugs from article titles?

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

Required field only if another field has a value, must be empty otherwise

Log a user out of a website when they put their computer to sleep

Extract house numbers from address string

How can I create a Download Page with post php method?

Combine multiple columns into an array as one of the key in a results set

php code to send checkbox form results to email

Laravel insert dynamic input values with radio button

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

Remove country code from phone number?

How can I create a Download Page with post php method?

Use same method for inertia response and json response Laravel Jetstream

PHP array_filter with arguments

About Contact Privacy policy Terms and conditions