• 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

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

Generate random username based on full name php

Custom post type single page not working

Open a popup box after receiving result from ajax

laravel sanctum Route [login] not defined

Testing subscription renewals on Stripe

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

PHP: Telegram Bot: Insert line break to text message

Boolean assignment operators in PHP

Move a child array to parent array and change parent/child name

How to submit a form when page loads using JavaScript?

How to redirect to another page and call a Function there on Angular ng-click

ORA-12546: TNS:permission denied error connection to remote oracle server

Extract house numbers from address string

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

About Contact Privacy policy Terms and conditions