![]() |
I need some help with this code please.
I have created a usergroupid of 14 for inactive users. I want to use a checkuser that if another person comes along with the same username and signs up it deletes the old username from the inactive list.
I have so far: if ($checkuser=$DB_site->query_first("SELECT username FROM user WHERE usergroupid==14 AND (username='".addslashes(htmlspecialchars($username ))."' OR username='".addslashes(eregi_replace("[^A-Za-z0-9]","",$username))."')")) { DB_site->query("DELETE FROM user WHERE userid='bbuserinfo['userid']'"); } which I know isn't right but is in the general ball park at least. :) Thanks for any help. Parker |
Try this:
Code:
$checkuser = $DB_site->query_first(" |
Chen:
Works like a charm! Thanks again for helping me get this stuff done. Parker |
All times are GMT. The time now is 08:31 AM. |
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:
|