• 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

Valet, Xdebug after reboot Big Sur not working

With doctrine ODM, can I embed many subdocuments in a main document?

Google API Heatmap Layer exception, why?

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

PHP Warning: Module already loaded in Unknown on line 0

How to add a custom field to all Woocommerce attribute terms using add_action

How to implement placeholder in a php file for moodle plugin?

How to give apache permission to write to home directory?

Can't call javascript alert alertify library from PHP

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

Natural ORDER in Laravel Eloquent ORM

PHP array_filter with arguments

Which is faster php date functions or carbon?

Explode not working properly with dash

About Contact Privacy policy Terms and conditions