That is the correct code to work, so no problem there.
What version oh PHP are you using?
Also, is the register_globals setting turned on in the php.ini file?
Try to rename the file you are including it into .php instead of .html.
Also, make sure you have a file called connect.php in the same folder as the membercheck.php file defining the $DBSERVER, $DBUSER, and $DBPASS variables or change them in the membercheck file.
Also be sure you have the second version of the file listed in the post, the first didn't work for everyone. Let me know if this works.
Thanks.
|