• 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

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

How to create a scheduler application in php

Unable to Edit config.inc.php

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

PHP DOTENV unable to load env vars

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

woocommerce_wp_select options array from product attribute terms

Python - Include another Python script

phpMyAdmin Accepts NULL in the NOT NULL field

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

passwordless LDAP login and get user information using Kerberos ticket in PHP

About Contact Privacy policy Terms and conditions