Calum, I am guessing that Quirk is testing on a different machine which contains the appropriate database/table/rows and was having trouble getting the test code to work. But yes, in order for the test code to work, several prerequisites need to be resolved.
According to the code that Quirk showed us I can tell you that there needs to be a MySQL server installed and running on the machine that the code is being executed on. There needs to be a MySQL database created called "faqfuckmicrosoft_uk_db", containing a table called "MES_FAQ" containing at least the following columns named: id, title, author, content, title, and date. In addition, a MySQL username and password must exist that matches the ID and password Quirk uses in the "mysql_connect()" function and that ID must have been granted at least "select" permissions to the database/table.
Now, since I have Apache/PHP/MySQL all installed on all of my machines I just created such a database/table/ID/permissions in MySQL on my laptop, then added a few rows of data to test with, copied his code into a *.php file on my laptop under my web root, set the ID/Password in the code to match what I created in my database and the code displayed the data in the table just fine. So his code is correct, I can't know if the database is set up right in his test environment but I assume it is.
[ September 17, 2002: Message edited by: void main ]