Hi, I am new to OOP with PHP. I am wondering how OO comes into play when selecting data from a table. that is, I have a user table and a user profile page. Therefore, I have a User class. I select user data from a table, then create a new object of class User and define properties?
Thanks to everyone who can clean this!
Hi,
Jonesi
To create this, you can create a UserManager class that selects user data and creates a user object with it (depending on your WHERE clause). This class can have the following methods: selectUserById (), selectUsersByAge (), etc.
ORM, Doctrine Propel.
. Stackoverflow " PHP ORM"
MYSQL, , , , , , , .
, .
, , , , .
Source: https://habr.com/ru/post/1748488/More articles:dereferencing hash without creating a local copy - perlWhat is the procedure for deploying a Symbian-based Qt application on a Nokia device? - qtJQuery Ajax success: function () - jqueryHow to get a good overview of the data structure in the debugger? - debuggingMaven2: Renaming the provided dependencies in the package phase? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1748489/jsf-20-and-myfaces-tomahawk&usg=ALkJrhi47BURrI5NSJ-8uy-UiUTqV-6-ggRecolor a component every second? - javaHow do you do deferred exception management? - ruby-on-railsSet the default context in the Zend environment for XML - xmlHow to capture inexperienced exceptions to the AS3 program? - flashAll Articles