• 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 sort by a custom appended relation to model

php code to send checkbox form results to email

IlluminateDatabaseQueryException: SQLSTATE[HY000]: General error: 1 no such table - In clone project

Transform array, set each array element with parent key php

How to run or debug php on Visual Studio Code (VSCode)

I want to store data in new index as per my key in php [duplicate]

I want to display a sweetalert after the inserting of data in my database

phpMyAdmin Accepts NULL in the NOT NULL field

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

Pagekite error: FAIL: localhost:8080 is down

How to properly start Laravel 8 with Bootstrap & authentication

How to modify CSS in a specific page of the WP admin dashboard (backend)

No result using makeStyles Material UI in react 18

Clear javascript source cache laravel 5.8

How to unlink image from folder?

About Contact Privacy policy Terms and conditions