An Incremental Replacement
by in CodeSOD on 2023-04-27Jon sends us an entire function, but I'm just going start with the comment, after which you'll understand everything bad about this without me explaining further. Don't worry, I will, but the comment says it all:
/**
* Returns the next ID of a table. This function is a replacement for MySQL's
* auto-increment so that we don't need it anymore.
*
* @param string $table The name of the table
* @param string $id The name of the ID column
* @return integer
*/