web directoryearn money in seconds   Free file hosting, free video sharing

<<< The Web Hosting >>>


Go Back   Noeman GSM > Webhosting & Website development > Website development > Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2007, 11:14 AM
Spiral's Avatar
CO-Admin
 
Join Date: Sep 2004
Location: Martil
Age: 25
Posts: 15,846
Reputation: 20207
Spiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super MemberSpiral Mega Super Member
Default How to create Member List In PHP

In this tutorials.We teach you "how to create member list in PHP with mysql

Step 1 : Create database with information
PHP Code:
<? 
CREATE TABLE 
`user` ( 
  `
user_idint(10unsigned NOT NULL auto_increment
  `
usernamevarchar(150NOT NULL default ''
  `
passwordvarchar(150NOT NULL default ''
  `
emailvarchar(255NOT NULL default ''
  
PRIMARY KEY (`user_id`) 
)  ; 
?>
Step 2 : As I have some data,example :
Code:
<? 
INSERT INTO `user` VALUES (1, 'admin', '12345', ' [Only Registered users can see links . Click Here To Register...]'); 
INSERT INTO `user` VALUES (2, 'jacky', '1234578910', ' [Only Registered users can see links . Click Here To Register...]'); 
INSERT INTO `user` VALUES (3, 'mizuki', 'abcd', ' [Only Registered users can see links . Click Here To Register...]'); 
?>
Now,how to list all of member in this table ?.
Step 3: create listmember.php with code below :
Code:
<HTML> 
<HEAD> 
<meta http-equiv="Content-Language" content="en-us"> 
<TITLE>This is Example</TITLE></HEAD> 
<body> 
            <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#77a7ad  
            cellSpacing=1 cellPadding=1 width="100%" bgColor=#ffffff border=1> 
        <tr> 
            <td width="37" align="center" ><font face="Tahoma" size="2"><b>STT</b></font></td> 
            <td align="center" ><font face="Tahoma" size="2"><b>Username</b></font></td> 
            <td align="center" ><font face="Tahoma" size="2"><b>Email</b></font></td> 
                    </tr> 
<? 
$ds="select * from user order by user_id "; 
$rs=mysql_query($ds,$connect); 
if(mysql_num_rows($rs)!= "") 
{ 
    $stt=0; 
    while($row=mysql_fetch_array($rs)) 
    { 
        $stt++; 
?> 
        <tr> 
            <td width="37" align="center"><font face="Tahoma" size="2"><?=$stt?></font></td> 
            <td align="center"><font face="Tahoma" size="2"><?=$row["dn_username"]?></font></td> 
            <td align="center"><font face="Tahoma" size="2"><?=$row["dn_email"]?></font></td> 


        </tr> 
        <? 
    } 

?> 
    </table> 
</body> 
</html>
Now,you're done
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:10 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 2004-2008 Noeman . All rights reserved
Car Loan | Myspace Images | Credit Card Consolidation | Free Advertising | Mobile Java Games Developer

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112