This is same as the My friend list frame in Orkut,facebook etc.
how can i display the content in mysql database order by 3 colums and 3 rows.
Please help me...
Thanks in advance.
here is my code of my friends frame
userreg is the table name
id<>$id means-select all id of users except the logged persons id.
Expand|Select|Wrap|Line Numbers
- My Friends</h3>
- <table width="29%" height="277" border="1">
- <?php $result= mysql_query("SELECT * FROM userreg where id<>'$id'")
- or die(mysql_error());
- $count3=mysql_num_rows($result);
- while($count3>0)
- {
- $count3--;
- $row4= mysql_fetch_array($result);
- $y=$row4['username'];
- $id=$row4['id'];
- $toid=$id;
- ?>
- <tr>
- <td height="89"> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td height="89"> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td width="35%" height="89">
- <?php
- echo "<a href='scrapbook.php?toid=$toid'>$y</a>";
- ?> </td>
- <td width="33%"> </td>
- <td width="32%"> </td>
- </tr>
- <?php }?>
- </table>