Previous Thread
Next Thread
Print Thread
Rate Thread
#282890 01/04/2005 10:51 AM
Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
As the title says, I'm wanting to search & ban a block of IPs via my control panel, but I guess I'm not using the correct variable. I *thought* it was xxx.xxx.xxx.%, or xxx.xxx.xxx.*, but it ain't working...I'm on 6.5

Any help is appreciated!

Sponsored Links
CPBpnM #282891 01/04/2005 11:14 AM
Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
Ok, I see they still use the "%" wildcard, but I'm getting this error when I ban an IP:

Code
Script: /home/yenko/public_html/ubbthreads/admin/doupdatebanlists.php <br />Line#: 69 <br />SQL Error: Column count doesn't match value count at row 1 <br />SQL Error #: 1136 <br />Query: INSERT INTO w3t_Banned VALUES ('24.151.173.69') 

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
That error occurs when the number of colums in the database table listed (w3t_Banned) doesn't match the number of values being INSERTed INTO it ('24.151.173.69').

In this case, there needs to be other values listed within the brackets. Something like...

(0, '24.151.173.69', '');

...since the w3t_Banned table has at least 3 rows.

Thus it looks like there's a bug in the script.

I can't help you any more because I don't use 6.5, but that's the issue anyway.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)