help me…
suppose some data is fetched from database using while(mysql_fetch_array(**)
and i want that on click of each fetched data from database one div must be opened up …please somebody tell me help please
You will need javascript to make a collapsible div. There are plenty out there.
Each piece of data will be a link, say the persons name or what ever data your storing.
[php]echo ‘<a href="" onclick=“toggleDiv” id=’.$row[‘username’].’>’.$row[‘username’].’’;[/php]
Then below that
[php]echo ’
Data to show / hide
Something like that