• 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

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

How can I get user id from session in javascript?

Star and Half Star Rating in Laravel

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

How do I Post to .txt document before form submits

Image upload not working through ajax Laravel

Telegram bot doesn't answer

Post Form Data To phpmyadmin Database

Adding reCAPTCHA v2 into my PHP file

virtctl works when executed via command line but not from php exec()

Read users and passwords from a txt file

How to convert time from one timezone to another in PHP

Fatal error: [] operator not supported for strings

Destroy session upon refresh

Issue with laravel eloquent model property

About Contact Privacy policy Terms and conditions