What do you want to save?
Add Code snippet
New code examples
-
SQL 2021-11-22 12:12:19
mysqli connect
<?php $mysqli = new mysqli("localhost","my_user","my_password","my_db"); // Check connection if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; ... Add solution -
SQL 2021-11-22 12:11:56
mysqli connect
<?php $mysqli = new mysqli("localhost","my_user","my_password","my_db"); // Check connection if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; ... Add solution -
SQL 2021-11-22 12:11:44
mysqli connect
<?php $mysqli = new mysqli("localhost","my_user","my_password","my_db"); // Check connection if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; ... Add solution -
PHP 2021-11-15 15:28:31
mysqli set utf8 encoding
<?php $mysqli = new mysqli("localhost","my_user","my_password","my_db"); if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; exit(); } echo "... Add solution -
Other 2021-11-11 10:55:19
PHP mysqli_connect function
<?php $mysqli = new mysqli("localhost","my_user","my_password","my_db"); // Check connection if ($mysqli -> connect_errno) { echo "Failed to connect to MySQL: " . $mysqli -> connect_error; ... Add solution -
PHP 2021-11-09 06:55:08
number of rows in a mysql table pdo
//Instantiate the PDO object and connect to MySQL. $pdo = new PDO( 'mysql:host=127.0.0.1;dbname=my_database', 'username', 'password' ); //The COUNT SQL statement that we will u... Add solution -
PHP 2021-10-28 08:07:12
php mysql search database and display results
<?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 -
SQL 2021-10-22 19:12:15
mysqli::real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)
// 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 -
SQL 2021-10-21 23:08:12
download mysql database to excel in android studio
<?php $dbhost= "localhost"; //your MySQL Server $dbuser = "root"; //your MySQL User Name $dbpass = ""; //your MySQL Password $dbname = "smkkimmanuel2"; //your MySQL Database Name of which database to use th... Add solution
Best helpers
Ranking is empty