Problem I have my PDO Wrapper class and would love to get some more tips/opinions about what you think. This […]
Category: Php
Checking if naughts or crosses win in Tic Tac Toe
Problem I am working on a coding challenge for Tic Tac Toe. I am calculating the results and inserting them […]
Test Driven Development Roman Numerals php
Problem I just learned about Test Driven Development on a podcast yesterday. So I decided to try it out today […]
Connect to MYSQL database in PHP with prepared statements
Problem I have recently learned about using PDO. I created a db class which could handle common actions like create, […]
Event timers database interaction layer
Problem I’ve just started with the basics of OOP. At first it looked complicated, but once I just started with […]
Product page filter
Problem I am still learning Laravel and I am in the process of creating a small shopping website. On the […]
User php class. Should I connect to DB in this class?
Problem I have small Class which handles user’s information. (name, surname, login, hash of password). Also this class can activate, […]
Selecting a random image from a subdirectory
Problem I’m looking for code correctness and improvements for the following code. It’s my first step into class based programing. […]
Sanitizing name strings using PHP
Problem Functionality: This method removes a list of specific terms (e.g., LLC, INC, Inc, Company, etc.) from a list of […]
Unnecessary loop in database population
Problem I was looking over some code that I wrote years ago (that is still technically working, albeit on a […]