@mAyman93 use doctrine. don't use php libraries for connection to the data base