• 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

Transpose multidimensional array and join values with commas

How to render html from a @foreach loop in a textarea

Popup Window and PHP form

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

In PHP, which is faster: preg_split or explode?

stay with the last 15 elements of an array [duplicate]

How can I get user id from session in javascript?

How to send upload image through email

Jquery DataTables: Data not displaying in table via Ajax

Laravel php artisan serve to mimic HTTPS

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

Assets not referencing to public folder (Laravel)

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

Project structure for PHP

How to read laravel_session cookies saved in cookie memory of browser in client side?

About Contact Privacy policy Terms and conditions