Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php catch mysqli_connect(): (HY000/1045): Access denied

$conn = mysqli_connect( '<server>', '<username>', '<password>',  '<database-name>');
if (!$conn) {
  // whatever processing you want to do upon error in connection
  // like log error or send an email to admin
  // I am just printing the error at the moment.
  echo mysqli_connect_errno() . ":" . mysqli_connect_error();
  exit;
}
Comment

PREVIOUS NEXT
Code Example
Php :: how to unhash password_hash in php 
Php :: http_build_query 
Php :: strings functions php 
Php :: Write a php program to swap two numbers using temporary variable 
Php :: Email "" does not comply with addr-spec of RFC 2822. 
Php :: learn php basic 
Php :: laravel display multiple selected values 
Php :: str_word_count() 
Php :: php wordpress 
Php :: php forech pdo 
Php :: php izyboy 
Java :: how to make phone vibrate android studio 
Java :: java stack char 
Java :: how to learn java in one day 
Java :: android copy text to clipboard programmatically 
Java :: bukkit delayed task 
Java :: phone call using intent in Android 
Java :: java jcombobox get selected item 
Java :: JFrame Exit oon close Java20 
Java :: java selenium open new tab 
Java :: java lerp 
Java :: string to int java 
Java :: capcitor FERR_CLEARTEXT_NOT_PERMITTED 
Java :: register command spigot 
Java :: java string to long 
Java :: cannot lock java compile cache as it has already been locked by this process 
Java :: array slice java 
Java :: java file reader utf 8 
Java :: java how to open a link 
Java :: new int [] in java with assigned values 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =