Home Programming The Perils of Old PHP Code

The Perils of Old PHP Code

0

Seeing code like this I’d just one of the landmines that awaits anyone who works in php and takes over an old project.
$result=db_fetch_targets_by_string('project_id="95" and status="A" and custom4="Yes" and custom10!="Yes" and segment="english"');

Client: Why is this guy’s account not being created?

Me: ummmm, because custom4 does not equal “Yes”

Client: What is custom4?

Me: ¯_(ツ)_/¯