Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Mass Delete Checkboxes From List??


The following form/list (sans checkboxes)opens a second forms page (contact_detail.php)
from which to edit an individual contact record.

I'm trying to see a way in which to mass delete (or SET deleted=Ƈ') for each record in the list where the mass_delete checkbox is checked.

Simply Check desired boxes and press "Delete All Checked" button, without having to open each contact_detail page. Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Mass Delete, Checkboxes
Is there a good code to delete multiple SQL entries with checkboxes? I have a form with a bunch of checkboxes with value="2512", or whatever which goes to the ID column in my SQL table. I want it so that whatever boxes that are checked are selected, so 'SELECT * FROM table WHERE ID="2323" OR ID="1234"'

View Replies !
Mass Delete
I mass delete entries with a certain value in a particular column. I mass delete all entries that has a value, say 123.123.com under the column "remotehost" in a table? Any SQL query that fits my description. this is a counter script and I am trying to remove all the counts that belong to me.

View Replies !
Using A Check Box For A Mass Delete
we want to be able to mass delete certain duplicate and unwanted members. Was thinking of a checkbox type deletion sort of like what I've seen on myspace.

a list of members would fill a page in rows.  each member has a unique member number.  On the left would be a check box and at the bottom a buttom to delete all the the checked members.

How would I pass the checked members id number to the delete page and the query to delete all the members where the m_id = all the id numbers.

View Replies !
Using Checkboxes To Delete Record From Database
i would like to use check boxes to delete records from the database. my problem is, the records belong to different tables. how do i indicate in my code "DELETE from blah blah... " from which table to delete from..

View Replies !
While(list => Checkboxes
I wanted to print out checkboxes for those which are checked when form is being submitted. Whilst, this is my function: PHP Code:

View Replies !
Getting List Of Checkboxes And Value In Next Page
Problem is that On the first page I display all other user
with checkbox and give user option to select only two user which he
wants to send message. Tell me please how I'll get those checkboxes
value and name on the next page and send message to only those two
selected user.

View Replies !
Multiple Delete From A List Of Records
If I have a list of records from a database on the screen, each with a check box beside them, how would I delete all the records that have been ticked? I assume I would use a variable similar to checked[], but not sure what syntax I would use to remove them from the database? Would I loop round each record comparing the checked[] value and it it's set, delete the record?

View Replies !
Delete Textfile List From MySQL Table
I have a list of email addresses that I need to delete from my database and they are in a textfile, one on each line like below...

a@b.com
c@d.com
e@f.com

etc. does anybody have a snippet of PHP code that I could use to accomplish such a task?

View Replies !
Checkboxes - Form Is Not Working AT ALL For The Checkboxes
I want the user to be able to check a box in front of each fair he/she would like to attend and then proceed to providing us with registration details. Once complete, I want a reply sent to the client to thank them and indicate that his/her form was submitted.

I also want the information submitted to be e-mailed to a particular address. (The information is not being submitted to a database)

My form is working just fine for the submission of client details but is not working AT ALL for the checkboxes. The following is the code of the pages (the html registration page first, the php second) Code:

View Replies !
Delete Record - When The Delete Link Is Clicked The Next Page Is Blank And Nothing Is Deleted.
This is my "delete.php" and this "todo/delete.php?id=64" an example of a link to it generated from the index.php page. When the delete link is clicked the next page is blank and nothing is deleted. What have I done wrong?

<?
include("dbinfo.inc.php");

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$id="delete from todo where id='$id'";
mysql_query($id);

mysql_close();
?>

View Replies !
Mysql Delete - $query = Mysql_query("DELETE
how would i do the following ?

$query = mysql_query("DELETE notes, datestamp, abs_value, ID FROM absence_mgt  WHERE datestamp='$date' AND ID='$vtc_login' ") or die(mysql_error());
im just getting "Unknown table 'notes' in MULTI DELETE" ?

View Replies !
Mass Mail
I am asked to add to a control panel of one of my clients a module that allows him to send a mass e-mail to one of 3 lists that the client has. I am told that up to 15000 e-mails can be in a list. I am wondering what is the best way of doing this in php without crashing the server. I researched on this and I've seen the "Use Majordomo" comment come up quite often. But I want to know whats the best way of doing this in PHP.

View Replies !
Mass Newsletter
I have to send a newsletter to more then 8000 address!
What is the best way to do it?
sending all together?, with mail() function?, with smtp?, divided in
groups....?


View Replies !
Mass Email?
I was wondering what would be the best way to mass/bulk e-mail? I imagine something like this:

while ( $email = mysql_fetch_array( $emailquery ) )
{
    mail( $email['email'], $email['to'], $email['message'], 'From: user@aol.com' );
}

Wouldn't be the best method. Can someone provide a better method or perhaps a tutorial that introduces a more efficient method of mass/bulk emailing?

View Replies !
Mass Data
I have a large amount of data, around 9MB, in a csv file. I have a script to convert to SQL and insert into a database. However, I cannot ever get it to finish, it  sits there for over 30 minutes, with no output. I've tried upping the allowed RAM usage in  the php.ini file as well as the time to execute and other parameters along those lines.

Does anyone know a good solution this? Would something like this be possible via command line?

View Replies !
Mass Mailing
I need to send 30,000 emails to our NewsLetter Subscriber, I tried to use our hosting Site and for the worst part We we banned and our site was stopped.

I am using PHP script, mail() function to send Mail. how to send these personalised newsletter.

View Replies !
Mass Emails
what is the best way to send out mass emails. I was thinking of having a database table with just the users email, and then a

foreach(
mail()
)
loop.

Is this a good way to do it, or is there a better way? Will this get me blacklisted in any way?

View Replies !
Mass Email
looking for a script that will connect to ma database where i hold the user email and be able to send them all a message from me.

View Replies !
Mass Mailer
I'm developping a mass mailer and triing to do something : when i send mail in mass (over 1000) it takes a long time and it's not "user friendly" at all because the user his stick on that page for a while. so what i would like to do it's to get all the informations i need to send the mail, redirect the user on a page and send the mail in "background" so the user could still navigate on the web site.

View Replies !
Mass Emailer
In my database of members, I have. let's just say tons of entries. I am trying to create a script where I can email all of them at once, without crashing my server, because I know there is a limit on how many emails can actually be sent within a certain period of time. I coded the script to get the email address from the database and mail each person uniquely.

View Replies !
Mass Emailing Question
I am writing a mass mailing system for a company. They have arround 30,000 customer's and need to send email to each and everyone of them.

I have written mass mailing programs in the past (using php) and know that its best to:

1. Open one socket connection to sendmail
2. Use BCC as much as possible to lower the overheads
3. Send them in batches

The script I wrote in the past for my own website subscribers, however, seemed to die at around 3,000. so getting 30,000 might be a problem.

I was wondering if anyone had any experience of writing mass mailers of around 30,000 and if they could give me any advice regards ISP blacklisting and/or any tips on how to go about writing them (special methods etc.).

View Replies !
Mass Migration From Mysql?
Considering the recent changes to the mysql licensing terms, which
meant the php5 team had to adopt sqlite instead into the php5 and drop
mysql stuff from the standard language distro (as i understand
things)... will there be a mass migration now to something like
postgresql?

View Replies !
Mass Mailing From Database
The code takes all the email addresses from a database table and sends out email to each of them using the mail() function. I'm hosted on a virtual host, so I can't change any INI files or anything to stop the script timing out. I tried putting set_time_limit(0); at the top of the file, to no avail.

My options appear to be:

1) Get a Perl script to do it (I can't program in Perl, or find one to do it.)

2) Get some kind of list software (this needs to be in Perl, as I can't install anything on the server. Also it needs to be free, and must work with my existing system (a MySQL database))

3) Get around the time-outs in PHP (I'm not sure how)

View Replies !
Mass Email Sender
I'm looking for the best way to send a mass email to all adresses listed in my MySQL database. There are currently more than 17.000 email adresses. Code:

View Replies !
Selecting With PHP And Mass Mailing
I work as the sysadmin for a local ISP. I need a way to access some information from our database of stories we post on the site each day. I'm going to write a script that will access the database and grab the last 7 entries that were entered. I'm not sure how to go about selecting this information.

Also, I used to have a simple perl script that would open the dir of the users, and send an email to each name that was a name of one of the directories and I guess it appened the @domainname.com on the end. In other words, I could have a file on the system that I needed to send and I ran a script that sent this file to each customer we had as if they were the only ones to receive it. I'm not sure how to recreate this.

View Replies !
Best Ways For Mass Mailing
I would like to understand which are the best ways to send bulk
mailings like for newsletters and so on ( not spamming, always to
receivers who opt-in ).

I am not looking for code for now , I have found some very interesting
classes and I also have my own scripts, I just want to know all the
options available and why one is better of another .

So, if have to send just a few copies to, say, less than one hundred
people I can use the mail function, If I have to send , say, 20
thousand emails I will have to hire dedicated mail servers, but what if
I have to deliver a few hundreds emails ?
What is usually the max limit using my shared hosting before moving to
a dedicated mail server ?

What is the best way ? maybe splitting the delivery in batches using
the default mail ( sendmail ) or by SMTP ?

View Replies !
Mass File Rename
What I want to do is perform a mass file rename, replacing "_" with blank spaces. So far I've come up with the code that loads the filenames into an array. Now I have to do some kind of search and replace. Then rename.

What I'm having problems with is the code to do the replace. All that I tried seems to fail. Also I know about "rename (oldname, newname)" but how would I make it rename all files within the array? PHP Code:

View Replies !
Mass Newsletter Mailer
I have written a script in PHP, which takes all the names froma DB and lists them in the BCC, to act as a mass newsletter mailer to my customers. However it doesn't send, but the script works on other servers, and the mail() functions works if you don't include BBC headers. Does anyone know any way of getting around it?

View Replies !
Mass Email Without Sendmail
I currently use the mail() command in a loop to contact 1300+ subscribers. Recently every email is getting bounced back saying that the subscriber has an "unrouteable mail domain" (although they have been working for years). I don't think it's a general problem with mail(), because I can still use it in a loop to send smaller numbers of emails. So, I assume it's a restriction on the number of calls to mail() at one time, or something like that.

I then tried using Pear::Mail, but found that popen() was disabled for security reasons and fopen() gives me the following error:

Warning: fopen(/usr/sbin/sendmail/): failed to open stream: Permission denied in /home/path/to/script.php on line 20

So it looks like I can't use sendmail, either. :(

What other options are open to me? The only other thing that I can think of is to continue to use mail() in a loop but to pause the script after 500 emails or so.

View Replies !
Mass Proxy Checker
i am trying to build a mass proxy checker.

the idea is as following:

read a list of proxies, connect to each one of them (in a loop), visit a specified website and if the visit was successfully (and not time out) to print a 'success' line, else a 'error' line. I've used snoopy class and here is my code but i am not too satisfied with it. Code:

View Replies !
Mass SQL Import (singles Are Ok?)
i have some code that imports alot of data into the MySQL database,

Now this is fine when i use the INSERT INTO one record at a time.. but if i do 2 records ie

INSERT INTO `PB2` (`field1`,`field2`) VALUES ('111' ,'222');
INSERT INTO `PB2` (`field1`,`field2`, `field3`) VALUES ('333' ,'444', '555');

in which case i get the error

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; INSERT INTO `PB2` (`field1`,`field2on line 1

so it would seam the ; is causing the problem.. but even when i do them one by one it has the ;, AND if i copy the SQL statement that is echoed with the error and run it in PMA (phpMyAdmin) it runs without error!..

the only thing i can think of is a limit set by the host.. ?

View Replies !
Mass Deletion/Paging
I am a first timer here and I hope to enjoy the forum in the long run. I have a question regarding mass deletion and pagination or paging.

I have the following code/method which displays the search result and I want, within the search result, to allow staff or members with appropriate access to be able to delete (multiple records via checklist) records from the database. The methods are under index.php and here is the code below: Code:

View Replies !
Sending Mass Mail
I need to send 3000 messages out. what would be the best way to tackle this?  Currenly i use php's mail(); function with a while loop. This takes around 6 seconds just for 200 messages. I would like to cut this down if possible. Also is it possible to send html through mail? So its not just a boring text email.

View Replies !
Mass File Upload
I am currently working on a site and i am allowing my client to upload images and assign the image to books. The problem is i have set it so he can only upload 12 images at a time.

Now he has asked to be allowed to select a folder from his hard disk and all the images in that folder be uploaded to the server. I don't want to give him ftp access as he could copy the code or even bring the site down.

is there any way i can create a interface for him to select the folder on his hard disk and use php to upload the images?



View Replies !
MASS MAILING CRISIS
I need to make a program that will be capable of sending out a blast email to 3,000-50,000 users. I previouslly made a program that used the mail() and a while loop, and it made the server crash and or produced errors.

As i have recentlly discovered many people seem to think that the mail() wont be good enough for this number of emails. I have also researched for two days on sending it with SMTP and have not figured that out yet.

Does anyone have any suggestions on how to make a program capable of blasting out 3,000-50,000 emails?

View Replies !
Mass Mailing Using Mail()?
How would I emal say, 10 email addresses, using mail()?

View Replies !
Newsletter Mass Email
i have a newsletter that needs to be sent to 4,300 people about once a month. my host has a Max Emails Per Hour set at 500. so i am forced to throttle the sending to 500 per hour. how would i go about starting the sending process and be able to close my browser and have it automatically continue sending 500 per hour until it finishes?

View Replies !
Mass Mailing Software
what mass mailing software you all use if any? We are very concious about the SPAM laws and are looking for ways to have subscriptions and unsubscriptions. Also most of our lists are in MySQL and Excel. I could always write one with PHP , but am a bit busy right now.

View Replies !
Need To Somehow Mass Edit Files
Basically I was looking at my FTP and noticed that all accounts PHP files have been edited by a script. under the modified date/time stamp in my ftp I noticed that the files were all edited at a specific time: Code:

View Replies !
Mass Email With Swiftmailing
swift mail is having a script that works like this:

$subject = 'Some subject'
$sender = '"George Bush" <george@bush.com>'
$recipients = array();
$result = mysql_query("SELECT name, surname, email from $my_table");
while ($row = mysql_fetch_assoc($result)) {
$recipients[] = array($row['name'].' '.$row['surname'], $row['email']);
}
$message = stripslashes($_POST['themessage']);
if ($mailer->isConnected())
{
$mailer->send(
$recipients,
$sender.

View Replies !
PHP Mass Emailing And Handling Bounces
I'm putting together a mass mailing application for sending out newsletters
from a site admin area (no spam).

I'm wondering how I can automate the removal of bounced addresses in this
application. The ideal situation would be that returning mail triggers a
script that removes the address of said message's recipient from the list.

I'm thinking about a script that checks the pop3 server of the reply-to
address and parses the inbox to look for returned mail and removes those
addresses from my database. This script could be run periodically as a cron
job or everytime before sending out the next mailing.

View Replies !
Combatting Mass Downloads For Offline Use
We run a busy site that is powered by PHP and MySql, we provide a lot of free training content and have over 35,000 files totalling over 500mb. We are getting mass downloaded far too often and our bandwidth costs are crippling us. Does anyone know a way to stop this mass download of our site.

Using PHP we check the browser type against our list of banned browsers and don't provide the links if a banned browser is being used - this has helped. However the banned browser list grows everyday and a new offline browser becomes available nearly everyday and not only that most of them allow you to spoof the browser type anyway.

We are thinking of introducing a session based site that monitors timestamps against session id's and bans users that download too quickly, does anyone have any thoughts on this?

View Replies !
Forgot How To Do A Mass Update In MySQL
I can't remember if I did this last time in phpMyAdmin or if I did it some
other way... I have 2 new fields in a database that I need to fill with
values. One field needs to have the default "0" updated to "1" in every
field. The other one I want to insert a randomly generated password. The
password function is in a form for all subsequent record insertions, but I
want to populate the existing 1100 records with one also. What's the
easiest way to fill these 2 fields without wiping out my data?

View Replies !
Writing My Own Mass-email Script In PHP
for the kidna weird selection of crossposted
groups, but this question touches on aspects of discussion in each of the
groups.

So I have a group of around 500 email addresses to which I would like to
send a mass email occasionally. The group will never be much larger than
500 email addresses and will occasionally be about half that size.

I have written a simple HTML interface and PHP backend to process the
mail. HTML form wiht "subject" and "message body" fields. PHP then gets
all this, gets a list of addresses from a database, and sends the email
out.

What is a good way to proceed with this?

I would like to Bcc: the names on the list so that the "To:" is "Mail
List<maillist@mydomain.edu>" (which is a dummy email address).

I tried using the PHP mail() function and it *seemed* to work, almost.
That is to say, I had added all the names to a long list of Bcc: headers,
and put the extra Bcc: headers in the extra headers argument to the PHP
mail() function. This seemed to work, in that it seemed like everyone got
the email; however, the mail() function came back with a failure error.

I thought about it a bit and researched a little and found that maybe a
really long Bcc: list is not the best idea, for spam reasons (my
message is more likely to be marked as spam) and for other similar
reasons. So I was considering looping through the 500 email addresses and
doing a separate mail() for each, but putting each email address in the
To: field. This sounds like a lot of overhead, though, and I'm afraid of
this thing timing out or crapping out or Something Bad(TM) happening.

I am currently using Sendmail, Linux (Red Hat 9), Apache 1.3.x, and PHP
4.3.8.

I am not crazy about the idea of installing EZMLM only because I would
need to install Qmail and, although that may be a good idea in the long
run, it looks like a bitch (if the length of this page --
http://www.lifewithqmail.org/lwq.html -- is any indication!) I am not
really very experienced with MTA administration!

View Replies !
Mass Adding An Entry Into Mysql
i have just realised i needed to add a number 6 to a field in mysql only thing is there is already 250 entries in, is there anyway i cann add 6 to all fields at the one time?

View Replies !
Mass File Open/write
I'm trying to make a simple game, and I've created say, ~4096 blank files in a directory. They're in coordinate form (31,3, etc), and I want to open every one separately and write some randomly generated content to it.

How would one go about doing that without writing 8192 lines of fopen()/fwrite()? 

View Replies !
Mass Replacing Of Text From 1 Field To Another
I have an SQL database, and i am trying to make a statement that checks if a field is not empty, and if it is empty, it puts in what is in another field.

They are both text fields, i've been scouring the net for if then statements, but im sure it's something more than a simple if then statement.

View Replies !
MASS Import Affiliate Links
I ve never used a csv file before and im wondering if anyone knows how to get one to link to pictures in a gallery, which uses php coding as it base?

View Replies !
Road Block On Mass Update
I have a database table named links, with around 600 or so links in it. The fields are link_id, link_url, link_description, link_status, link_report and a few others.

What my page does is call the db and pulls 15 entries out and displays them in a nice neat tabled list. Now the displayed data for each link_id is in its own text field and select box for things like category selection and so forth, this way my display page is also my edit page.

Now with all my data displayed and able to be edited, Im trying to make it to where I can edit any aspect of a link field and be able to submit all of the changes using one submit button at the bottom of the page. Meaning I could change 2 or 3 things for link_id 1 and 1 thing for link_id 2 or maybe nothing for link_id's 5 and 6 and be able to have all of those changes updated in mysql in the corresponding id when I hit submit. If anyone has a link to a tut.

View Replies !
Need To Mass Convert Pages To UTF-8 Encoding
Validator chokes on my pages now because I started sending an character encoding header of UTF-8 but the page is full of non UTF-8 characters. Anyway quick way to convert them?

View Replies !
Kron Job / Automated Job - Mass Mailing
I need to know what strategies are available for the following situation, I have an automated emailer sending out approximately 1700 emails out and growing in numbers.

Problem is that the ISP only allows me to send out 500 per hour, so I need to create some sort of automated software or get it somewhere that would send out 500 emails everyhour.

Another problem is that I dont want this to be browser based. Because this would take approximately 4 hours and also the client's always on the move so cant expect to have a browser open for 4 hours.

View Replies !
Free Simple PHP Mass Mailer
Looking for a free simple php mass mailer. Im NOT interested in managing lists, creating templates, etc. Just want a simple single page where you can enter a bunch of to emails, a from email, the message, etc and click submit and let it run. Obviously this script will have to spawn indenpendent scripts as web requests times out after a time.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved