Answer the question
In order to leave comments, you need to log in
How to fix syntax error, unexpected ''$connection'' (T_CONSTANT_ENCAPSED_STRING), expecting ',?
Started learning how to work with a database. all the time it is not possible to make authorization
checked the connection and the error is syntax error, unexpected ''$connection'' (T_CONSTANT_ENCAPSED_STRING), expecting ',
<?php
$connection = mysqli_connect('127.0.0.1', 'root', 'root', 'тут было название бд');
if( $connection == true){
echo "нет";
echo mysqli_error( );
die();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question