Hello I'm new to PHP programming (most of the job that I need i just outsource), but now i want to learn it. If any one know Esyndicat and the program structure how does it used the php DB connection in obejct oriented. Let me explain: In this directory you can add new fields to a listing but the Listing class does not have any listing field properties like title, url it's like it generate all the information from the DB. I want to buld a script that have this kind of dynamic but I can't under the logic behind it. Most book just duplicate the DB table columes with class properties which make the application hard to extend with changing alot of code. Does this approach have a name ?
you can edit any table in esyndicat using their class name esyndicat, this can be found on includes/classes folder. well, i just have only the free version.
Mysqli is the OO way of connecting to mysql in php eg: $sql = new mysqli(*connection details*); $qry = 'SELECT * FROM blah'; $res = $sql->query($qry); while ($row = $res->fetch_object()) { //do something with the row, eg print $row->id; }