Talk:PHP Example for Subscriber List
Jump to navigation
Jump to search
Warning: Deprecated PHP usage...
The code presented here is meant to be used in PHP 5 or, preferably, even lower than that. As a consequence, it will not run under contemporary PHP versions. In particular, everything related to the mysql extension has been deprecated. For PHP 7 and 8, at the very least, you will need to replace mysql with mysqli calls — they're very similar, but not exactly the same (i.e., a simple search and replace will not work).
You might take a look at this article for some useful tips to aid the migration from mysql to mysqli.
However, these days, any serious PHP project started from scratch should simply use the PDO extension instead.
— Gwyneth Llewelyn (talk) 12:48, 30 November 2023 (PST)