
Originally Posted by
JamesT.A.
Okay....now THIS is the sort of thing that makes Windows users toss their PCs out a 20th-floor window and run screaming to the nearest Mac dealer.
To be fair, what follows isn't any different on a Mac.

Originally Posted by
JamesT.A.
Why would the cPanel creators not put a "Modify Account" or "Maintenance" button on the MySQL page? Would that make too much SENSE?
Or simply change the text labels in the "Add" section to reflect the fact you can modify permissions. That one detail is the worst piece of cPanel's design.

Originally Posted by
JamesT.A.
Unfortunately I must have diagnosed the original problem incorrectly because I'm still getting the "no database selected" error.
That's why suspicion isn't a valid diagnostic tool. Mentioning the guess was fine, as you needed advice on how to fix the particular cause, but it made you stop looking for the solution. Your also shouldn't assume that the database is selected; the reason you gave ("all the info is correct in the relevant fields in the php pages") isn't sufficient.
To get more info, check the return result of mysql_select_db. If it's false, print mysql_error() (note: you shouldn't print DB errors in production code. It won't contain any useful information for users, excepting malicious ones).
If you can't get mysql_select_db to work, you can prefix table names with database names, separated by a period:
Code:
"SELECT * FROM `${db_name}`.comments WHERE tutorialid='$tutid' ORDER BY date"
Overall, I'm not impressed with the script. It uses "or die()" (2) to print errors, it prints DB errors, it uses the old MySQL driver instead of PDO (finally available on x10) or even mysqli, and (because it doesn't use prepared [2] statements), you must sanitize the tutorial ID you pass to getComments(), but this fact isn't documented. Worse, submitcomment.php doesn't sanitize any input.