DonationCoder.com Software > Post New Requests Here
IDEA: Simple php directory
tinjaw:
That is why I suggested phpMyAdmin. You could just browse the database if you want, or make changes as you need. But if all you need is a phonebook-like directory, the search the PHP script sites on the web for phonebook & mysql. You're bound to find at least a few dozen.
Stoic Joker:
PHPMyAdmin is a bit heavy just to dump a user list.
This is pipebomb crude but it's about all that's really needed:
--- --- <table border='1' width='442' cellspacing='1' cellpadding='1' bordercolor='#000000'>
<tr>
<td bgcolor='#0065AD' align='center'><b><font face='Arial' size='2' color='#FFFFFF'>User Real Name</font></b></td>
<td bgcolor='#0065AD' align='center'><b><font face='Arial' size='2' color='#FFFFFF'>User Nickname</font></b></td>
<td bgcolor='#0065AD' align='center'><b><font face='Arial' size='2' color='#FFFFFF'>User's SIP</font></b></td>
</tr>
<?PHP
$q = "SELECT * FROM table_Name LIMIT('$i', 50)";
$qResult = MYSQL_QUERY($q) or die("Invalid query: $q");
while($qRow = MYSQL_FETCH_ARRAY($qResult)) {
Print"<tr>
<td align='center'><font face='Arial' size='2'>$qRow[Name]</td>
<td align='center'><font face='Arial' size='2'>$qRow[NIC]</td>
<td align='center'><b><font face='Arial' size='2'>$qRow[SIP]</td>
</tr>";
}
$i +=50; // Pass incremented $i back to page for next loop (Block of 50)
?> </table>
Navigation
[0] Message Index
[*] Previous page
Go to full version