• 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

VB.NET WebRequest with PHP POST

Sort a multidimensional array by integer inside of a string value which is two levels down

array_key_exists(): The first argument should be either a string or an integer

Twig - How to check if variable is a number / integer

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

Execute only one time and then wait set period of time before executing again

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

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

How to downgrade or install a specific version of Composer?

Google Calendar API batch request PHP

Filter array by skipping every nth element from the end

Insert database rows from columns of data from associative array of indexed arrays

PHP Slim Framework request using withAttribute error

Sentry on Symfony: how to exclude `NotFoundHttpException`

php curl requesting twice

About Contact Privacy policy Terms and conditions