Limit registration per IP

04/06/2014 22:25 ShaiyaDeadlyBreath#1
Hello Visitor's

I was searching for Limit registration per IP based on ODBC ,
there is one released by Abrasive . when i installed it on my Register.php
it gave me error's . first i was thinking its the [Color="red" > 5 [/COLOR]
But it doesn't . if anyone can make simple 1 based on ODBC is working i really respect .

P.S does the > 5 isn't that for phpBB.

thank you .

shaiyadeadlybreath.weebly.com
join us episode 6 server .
04/08/2014 22:47 Autrux#2
#moved
04/09/2014 20:02 Blober#3
Be carefuliIf you use this one: [Only registered and activated users can see links. Click Here To Register...]
Why? Because it's wrote with mssql. Which is no more in php by default.

You may try this but i don't know if it will work:
PHP Code:
// Check IP Address count----Credits to Abrasive

$ipcheck = ("SELECT COUNT(UserUID) AS num_accounts FROM PS_UserData.dbo.Users_Master WHERE UserIp = '{$user_ip}'");
$result odbc_fetch_array($ipcheck);
if(
$result['num_accounts'] > ){     
$errors[] = 'You have created too many accounts under this IP address already, sorry for the inconvenience.'
@ShaiyaDeadlyBreath: Try with removing the last "}" of my code. i removed from the code above.
04/10/2014 10:32 ShaiyaDeadlyBreath#4
Hello . i know III one is based on php>mssql . but . the one you give has same errors as III one .

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\Registration\reg.php on line 64

well . thank you for reply anyway . could you find the fix for it ? thank you

i saw your edit . i get same error
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\Registration\register.php on line 64