What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-24 17:05:02
how to make a sign-up database
<?php session_start(); // initializing variables $username = ""; $email = ""; $errors = array(); // connect to the database $db = mysqli_connect('localhost', 'root', '', 'registration'); // REGISTER USER if (isset($_POST['reg... Add solution -
Other 2022-02-07 17:35:28
sequelize init connection set up nodejs node
const Sequelize = require('sequelize'); const path = 'mysql://user12:12user@localhost:3306/testdb'; const sequelize = new Sequelize(path, { operatorsAliases: false }); sequelize.authenticate().then(() => { console.log('Connection established succes... Add solution -
PHP 2021-11-10 06:50:17
php mysqli create class
<?php /** * Simple Database class for PHP7+ * The class contains main functions for your database. For a detailed documentation, see: https://webdeasy.com/ * created 08.11.2017 * * @author LH */ class Database { private $host, $database, $username, ... Add solution -
Other 2021-10-23 13:12:07
automate test database
First of I have to connect to the database Connection connection: DriverManager.getConnection(url, username, password)//throws SQL exception Statement statement: connection.CreateStatement() //throws SQL exception:checked exception ResultSet resultSet: st... Add solution -
SQL 2021-10-02 14:20:06
install postgresql ubuntu 20.04
Step 1 — Installing PostgreSQL To install PostgreSQL, first refresh your server’s local package index: sudo apt update Then, install the Postgres package along with a -contrib package that adds some additional utilities and functionality: ... Add solution -
PHP 2021-09-23 14:26:03
registation form php
<?php session_start(); // initializing variables $username = ""; $email = ""; $errors = array(); // connect to the database $db = mysqli_connect('localhost', 'root', '', 'registration'); // REGISTER USER if (isset($_POST['reg... Add solution