About setting error levels
我只是一条咸鱼哈
我只是一条咸鱼哈 2017-09-05 22:53:04
0
1
1110

$dsn = "mysql:host=localhost;dbname=lamp25;charset=utf8";

$pdo = new PDO($dsn, 'root', '123');

//Set error level

$pdo->setAttribute(3, 2);

##Can I ask about the previous paragraph? What are 3 and 2? Can you tell me in detail?

#The manual seems to be in English. . . .


我只是一条咸鱼哈
我只是一条咸鱼哈

即使是小小的人物,也有他自己精彩的故事

reply all(1)
冰泪000

$pdo->setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL); You can use static class constants like PDO::ATTR_CASE instead of numbers. It’s not clear what 3 and 2 are. It is more intuitive to write English letters.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template