Hi guys,
I am trying to make a personalized site in which each box has 3 options- edit, minimize and close the box. Now, I have got edit and minimize to work but can't get the close thing to work. Ok, now let me explain everything. the rows in each of this box depend on what the user selects through the checkboxes and accordingly the box is generated. On clicking minimize icon I just run a script that purges all the records in the database so that nothing gets displayed in the box except it's title. For that I use:
$query = mysql_query("DELETE FROM lookup_channels WHERE (uid = '$uid')");
I hope it is clear till here. Now on clicking edit he is taken to another page where there are lot of checkboxes from where he can select options and these in turn add info to the database so that something is displayed in the box. Now, I want that on clicking close icon the box shld disappear ( not even the title shld be visible on the page)--Any ideas as to how this can be done.
On the mainpage I am using this script to display data from the database:
$query1 = mysql_query("SELECT FROM lookup_channels WHERE(uid = '$uid') ORDER BY id");
while($info1 = mysql_fetch_array($query1)) {
$g = $info1['chan_id'];
$query2 = mysql_query("SELECT from const_channels where(id = '$g')");.....
I hope this makes sense.
Thanks in advance,
Mandy.