What do you want to save?
Add Code snippet
New code examples
-
SQL 2021-10-17 12:41:06
mysqli_real_connect(): (28000/1045): Access denied for user 'u0738423'@'www8.aname.net' (using password: YES)
// Connect to mysqli database $connection = mysqli_connect('localhost', 'root', '', 'test'); // OR with a P@$$w0rd $connection = mysqli_connect('localhost', 'root', 'P@$$w0rd', 'test'); Add solution -
Other 2021-09-09 18:36:03
iterate through names of columns in result set pdo
//Connect to MySQL using PDO. $pdo = new PDO("mysql:host=$host;dbname=$database", $user, $password); //Create our SQL query. $sql = "SELECT * FROM my_table_name LIMIT 20"; //Prepare our SQL query. $statement = $pdo->prepare($sql);... Add solution -
PHP 2021-09-06 11:21:02
big database file into database php
<?php // Name of the file $filename = 'churc.sql'; // MySQL host $mysql_host = 'localhost'; // MySQL username $mysql_username = 'root'; // MySQL password $mysql_password = ''; // Database name $mysql_database = 'dump'; // Connect to MySQL server mysq... Add solution -
PHP 2021-09-02 10:44:02
search function using php for database entries
<?php $con= new mysqli("localhost","root","","Employee"); $name = $_post['search']; //$query = "SELECT * FROM employees // WHERE first_name LIKE '%{$name}%' OR last_name LIKE '%{$name}%'"... Add solution
Best helpers
Ranking is empty