I have written a database which uses PHP to run through each ID in the
database and then generate a persons name and address to include into the
rest of the PHP to send an email out.
But as people have deleted or updated their details on this mailing list, I
now have "holes" in database. Ordinarily not a problem, but the code I've
written starts at ID 1 and after sending an email increments to the next
ID. But when it encounters a now vacant ID, it sends an error email to me
associated with that now blank ID row of data.
How can I change my code that will increment through all the results in
turn, but not give me these error emails when people have amended the
database?
Dariusz
database and then generate a persons name and address to include into the
rest of the PHP to send an email out.
But as people have deleted or updated their details on this mailing list, I
now have "holes" in database. Ordinarily not a problem, but the code I've
written starts at ID 1 and after sending an email increments to the next
ID. But when it encounters a now vacant ID, it sends an error email to me
associated with that now blank ID row of data.
How can I change my code that will increment through all the results in
turn, but not give me these error emails when people have amended the
database?
Dariusz
Comment