Is anyone trying to code the portfolio using object orientated PHP? I thought I may try, but it's a little complex to translate from procedural to OOP, but it could mean a little less coding. Do we need to use different file names for the classes if we use OOP or could we just put all the classes in functions.php?
In a small project OOPs are useless, but in a huge project... over time they make a difference, provided you know the correct what of creating and using them.
Thanks for everyone, especially Mac's comments. With regards to mysql_query vs mysqli_query? According to the php documentation mysql_ is being discontinued and is being replaced with mysqli_. Which one would be best to use for our project?
Admin
Registered: 18 years ago
Posts: 10,001
Rating: 353
Your choice. That said, perhaps better if you start of by using "preparing" yourself, but I would not penalize you. In general terms, servers are not upgraded as soon as a new version of PHP is released - you can add another 3 years, but eventually you will have to upgrade your code.