EASYPHP AND ERROR MESSAGES
Solved
tilt1245
Posted messages
3
Status
Member
-
tilt1245 Posted messages 3 Status Member -
tilt1245 Posted messages 3 Status Member -
Hello,
the software reports an error like this:
Parse error: syntax error, unexpected 'mysql' (T_STRING), expecting ']' in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\Test\minichat.php on line 40
I don’t know if I need to reconfigure the .ini file and if so, where to find it and how to do it, it’s different from WAMP from Microsoft. Thank you for your help.
the software reports an error like this:
Parse error: syntax error, unexpected 'mysql' (T_STRING), expecting ']' in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\Test\minichat.php on line 40
I don’t know if I need to reconfigure the .ini file and if so, where to find it and how to do it, it’s different from WAMP from Microsoft. Thank you for your help.
3 answers
Which line is affected by the error?
--
I mainly work in VB6 and VB.NET, with a little C#, but moderation often brings me to other languages.
In VB.NET, remember to enable "Option Explicit" and "Option Strict."
--
I mainly work in VB6 and VB.NET, with a little C#, but moderation often brings me to other languages.
In VB.NET, remember to enable "Option Explicit" and "Option Strict."
Hello NHenry !
// Connecting to the database
line 40: $bdd = new PDO('mysql:host=127.0.0.1;dbname=chatbd', 'root', ' ');
Error message:
Parse error: syntax error, unexpected 'mysql' (T_STRING), expecting ']' in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\Test\minichat.php on line 40
I was told that the password in easyPHP is: mysql ????
So I tried with the following code and it's still the same
line 40: $bdd = new PDO('mysql:host=127.0.0.1;dbname=chatbd', 'root', 'mysql ');
Thank you for your help!
// Connecting to the database
line 40: $bdd = new PDO('mysql:host=127.0.0.1;dbname=chatbd', 'root', ' ');
Error message:
Parse error: syntax error, unexpected 'mysql' (T_STRING), expecting ']' in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\Test\minichat.php on line 40
I was told that the password in easyPHP is: mysql ????
So I tried with the following code and it's still the same
line 40: $bdd = new PDO('mysql:host=127.0.0.1;dbname=chatbd', 'root', 'mysql ');
Thank you for your help!
Hello
First, think about this:
https://forums.commentcamarche.net/forum/affich-37584941-php-pdo-gerer-les-erreurs
Then... what do you have on the lines before line 40?
Given the error message.. I have the impression that you wrote something incorrectly on the previous line
--
Best regards,
Jordane
First, think about this:
https://forums.commentcamarche.net/forum/affich-37584941-php-pdo-gerer-les-erreurs
Then... what do you have on the lines before line 40?
Given the error message.. I have the impression that you wrote something incorrectly on the previous line
--
Best regards,
Jordane