View Full Version : Contact list generator
Independent
03-05-2008, 09:29 AM
Well, as my website still use's Housekeeping V1, and I doubt any other DJ panel has got this feature, but as you know most DJ's contact each other via MSN Messenger, I'd like to make a Contact list generator, that get's from a file (emails_msn.php).
MSN Contact list is used like this
<contact level="1">
[email protected]</contact>
or something, is there any chance of someone making a script like this, I'd make it but I don't understand flatfiling.
LegendOfNoob
03-05-2008, 04:09 PM
what if when you register a user they have to input their msn
If there is already a page there, the one u mentioned, emails_msn.php please show it, if not, make it so when they register on the panel or whatever, make them enter a msn address, and then make the appropriate field in the database table for it.
Then on the desired page do the following:
<?php
include("config.php"); // Whatever your database connect file is.
// Change msn to the field name you chose,
// users to whatever the table holding user info is,
// and change username to whatever the field for the username is called.
$msn1 = mysql_query("SELECT `msn`,`username` FROM `users`");
echo("<ul>");
while($msn2 = mysql_fetch_array($msn1)) {
echo("<li><b>".$msn2['username']."</b>: ".$msn2['msn']."</li>");
}
echo("</ul>");
?>
Something like that :P that would display them as an unordered list.
Hope that helps,
Luke
Independent
03-05-2008, 07:59 PM
If there is already a page there, the one u mentioned, emails_msn.php please show it, if not, make it so when they register on the panel or whatever, make them enter a msn address, and then make the appropriate field in the database table for it.
Then on the desired page do the following:
<?php
include("config.php"); // Whatever your database connect file is.
// Change msn to the field name you chose,
// users to whatever the table holding user info is,
// and change username to whatever the field for the username is called.
$msn1 = mysql_query("SELECT `msn`,`username` FROM `users`");
echo("<ul>");
while($msn2 = mysql_fetch_array($msn1)) {
echo("<li><b>".$msn2['username']."</b>: ".$msn2['msn']."</li>");
}
echo("</ul>");
?>
Something like that :P that would display them as an unordered list.
Hope that helps,
Luke
Thanks.. +rep
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.