• 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

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Using Associative arrays

browsersync doesn't work with XAMPP

JSON Render Issue in Date Object Laravel and PHP 7.4

Correct way to use LIKE '%{$var}%' with prepared statements?

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

Ajax GET request fails in laravel 8

How to separate letters and digits from a string in php

Elastic Beanstalk with Laravel Envoy

"Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10

How to install ZeroMQ for PHP on an Alpine Linux container?

How to use $this->session->set_userdata in codeigniter

Warning: sqlite_query() expects parameter 1 to be resource, string given

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

how to create html table in php

About Contact Privacy policy Terms and conditions