![]() |
Quote:
This may not be a good question but i have to ask! Will this hack work on Apache or is it strictly IIS??? If not, can you point me into the the other hack that inspired you to create this one! |
This hack is server independant, I use it on my IIS and Apache servers and it works fine.
|
thanks mt_100, i will give it a go soon!
looking forward to it! will click install when i get around to it! Also, will it work on 2.2.8??? |
This doesn't work for me =\
|
Yes there is a problem for some. The solution is to change all the lines that read ECHO that are HTML to just HTML and put the stop PHP and Start PHP parkers before and after them. I will send the new file as well.
|
Here is the new version, should work for you.
|
Where should an include to membercheck.php go and is the the correct code we are adding to our html pages:
<? php include('membercheck.php'); ?> We are not having any luck getting this hack to work and you please advise. |
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. |
After logging in, I get this message:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/wwwroot/websites/www/admin/memchk/membercheck.php on line 47 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/wwwroot/websites/www/admin/memchk/membercheck.php on line 52 The rows: 47: $row = mysql_fetch_array($result); 52: if (mysql_num_rows($result) > 0) Need some serious help here, because off php/mysql n00bnes :) |
Take a look at my post just before yours and make sure those items are satisfied. It looks like you don't have a connection to the DB so be sure to check your connect.php.
|
All times are GMT. The time now is 12:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|