Overwriting a row in a table
Posted: Thu Mar 24, 2011 8:48 am
My task is, I thought, simple.
My client, as the administrator of a website, would like the ability to send an email blast to all site clients. Easy enough, I just created a PHP function that loop through the client table, selected the email field and call the UNIX mail function. Job done, server side.
Initially, on the website, I displayed the results of the blast by creating a table and displaying a row (withing a <td></td> tags), for each email address. Job done, client side.
But then I was asked if, instead of a new row to display each email address, could I just overwrite the same row with each email address. Whether you could read each address is probably impossible, but the client asked.
So instead of a display that looks like this:
Message sent to: a@mail.com
Message sent to: b@mail.com
etc...
Is there a way to display just one line that keeps overwriting the row using either Javascript or jQuery?
My experience is in MySQL and PHP with enough XHTML/Javascript/jQuery to be dangerous.
My client, as the administrator of a website, would like the ability to send an email blast to all site clients. Easy enough, I just created a PHP function that loop through the client table, selected the email field and call the UNIX mail function. Job done, server side.
Initially, on the website, I displayed the results of the blast by creating a table and displaying a row (withing a <td></td> tags), for each email address. Job done, client side.
But then I was asked if, instead of a new row to display each email address, could I just overwrite the same row with each email address. Whether you could read each address is probably impossible, but the client asked.
So instead of a display that looks like this:
Message sent to: a@mail.com
Message sent to: b@mail.com
etc...
Is there a way to display just one line that keeps overwriting the row using either Javascript or jQuery?
My experience is in MySQL and PHP with enough XHTML/Javascript/jQuery to be dangerous.