
Ken Turnbull - 2018-01-23 18:48:41
Why are you still using legacy mysql connection information in this day and age??
While your approach to CRUD has some interesting aspects, your use of mysql and not MySqli or even PDO is, in my opinion, problematic and indicative of a lack of knowledge of current practice.
I am including in the next paragraph a warning that I have seen in various forms and posts for many years now about MySQL connections...
"The original PHP MySQL functions (whose names begin with mysql_) are deprecated in PHP 5.5, and will eventually be removed from PHP. Therefore, you should only use these functions when absolutely necessary for backward compatibility. If possible, use the MySQL Improved extension or PDO instead."
It is not hard to use the newer functionality and in fact PDO is very easy and very convenient.
Maybe an update to your code is in order