The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Mass delete based on txt file -- need help to finish
Hi,
I'm trying to clean up my database. I bought Emall Extractor to pull out all email addresses from bounced email. So here is how this works: 1) I send out a message. 2) I get the bounces through Outlook, which automatically puts bounces in a separate folder. 3) I export that folder with the bounced emails to a csv file. 4) I use Email Extractor to extract all of the bad email addresses into a text file. 5) I use the mass_delete.php script to delete the users attached to those emails. So now I have a text file with like 7500 emails in it -- one on each line. I want to upload this file using my script and have it delete the users that have those email address. My code skills are really bad right now due to some cognitive problems, so I could use some help to de-bug it. Although I'm not putting this in the paid hacks section, you can expect a donation for your help. I've attached the script. Thanks in advance for your help! I'm really close. My query just isn't right. What am I missing? PHP Code:
|
#2
|
||||
|
||||
I'm really close. There's a problem with my query and I've tried it every way I know how:
PHP Code:
Quote:
I solved the problem and it works great. I'll try to package it up and release it. |
#3
|
|||
|
|||
You are trying to use a literal operator on a string, which won't work here.
Try this: Code:
$user_info = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE email LIKE " . $delemail . "%"); |
#4
|
|||
|
|||
Regardless if you use = or LIKE, non-numeric values should be enclosed by single quotes:
PHP Code:
Or: PHP Code:
|
#5
|
|||
|
|||
Hi
I see from your other post you got this working https://vborg.vbsupport.ru/showthrea...mall+Extractor Is there any chance you would share ? I did PM you but never received a reply. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|