I reviewed and examined related issues with the general question of managing database restrictions in an application compared to restrictions based on my own database, but my question is much more specific and specific regarding how to handle my own mysql restrictions in application logic written in PHP .
In other database languages / shells (e.g. ADO.NET) you put the database interaction in try / catch and this throws the right exception, is this the case with php?
Also, does strict ORM use the need for database level restriction?
try/catch , . db , - sql, , , , ? , , , try/catch , . , , , PHP script, -, , , . , , PHP, db, , , SQL ( , ), try/catch.
. - , , . , PHP , 99% php -, ORM . , .NET , .
, - ? , , , .. , . , , , .
/ , (, ADO.NET), /, , php?
PDO... , Mysqli, , . PDOException... , " " " null"... / .
, ORM ?
, . , , db , , , PHP.
Source: https://habr.com/ru/post/1790130/More articles:Use snarl for notifications in WPF? - .netRedraw () does not clear the frame - javaRecommendations for the development of activities with a background service - androidLayered UISegmentedControl - iphoneКаковы поля модификатора по умолчанию для типа перечисления? - javaCan someone give me an example of using C # reflex? - c #Select Anonymous Type Using Dynamic Expressions API - c #How can I customize the Paypal verification page further? - cssDenormalization with Entity Framework - entity-frameworkposition position with raphael - javascriptAll Articles