• 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

Refresh specific HTML content that retrieves data from MySQL

PHP only Hit Counter?

Cannot connect to own websocket server when on secured domain

Post Form Data To phpmyadmin Database

SMTP "Error: DATA not accepted from server!" Opencart 2.3 on InMotionHosting

How to pass security cloudflare server with php curl

Dropzone: Submit both form data and dropzone at once

Can't exclude directories from .htaccess mobile redirect?

Image upload not working through ajax Laravel

Additional price based on cart item count in WooCommerce

Undefined variable in Laravel 8 project (php 7.4)

How to add class name to an existing tag in php

Creating Combinations of Elements

How to display MySQL table using php and edit it in a web browser

phpseclib 2.0 can not use Composer to create autoload

About Contact Privacy policy Terms and conditions