• 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

How to convert binary string to normal string in php

PHP rotate matrix counter-clockwise

Woocommerce product attributes with hierarchy like categories

Split comma separated value from table column into rows using mysql?

Chunk and transpose a flat array into rows with a specific number of columns

Wordpress how to get the post thumbnail inside a figure tag

Laravel display validation error

Laravel s3 upload file with metadata using pre-signed url

how to hide previous markers when new markers added in google map javascript api

Split array into 4-element chunks then implode into strings

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

wordpress : How to specify the cause "This site can’t be reached"

Add customer email and phone in "Order" column to admin orders list on Woocommerce

woocommerce_wp_select options array from product attribute terms

About Contact Privacy policy Terms and conditions