Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old July 25th, 2006, 10:05 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Fetch users

Hey, I'm trying to write a code to have all my users and their information they entered when they joined into one page, and its not working. Here is what I got
php Code:
Original - php Code
  1. <table border="0" width="100%">
  2.     <tr>
  3.         <td width="33%"><b>Username</b></td>
  4.         <td width="33%"><b>Email</b></td>
  5.         <td width="34%"><b>some_info</b></td>
  6.     </tr>
  7. <?php
  8. include('config.php');
  9. $sql = "SELECT id From members";
  10. $get_id = mysql_query($sql);
  11. if (!$get_id) {
  12.    echo "Could not successfully run query ($sql) from DB: " . mysql_error();
  13.    exit;
  14. }
  15. if (mysql_num_rows($get_id) == 0) {
  16.    echo "
  17.         <td><font color="#FF0000">*Your have no members</font></td>";
  18.    include('html.php');
  19.    exit;
  20. }         
  21. while ($rw = mysql_fetch_assoc($get_id)) {
  22.     echo '
  23.     <tr>
  24.         <td width="33%">' . $rw['id'] . '</td>
  25.         <td width="33%">' . $rw['email'] . '</td>
  26.         <td width="34%">' . $rw['some_info'] . '</td>
  27.     </tr>';
  28. }
  29. ?>


I think i did everything right and it still wont work

Reply With Quote
  #2  
Old July 27th, 2006, 10:06 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Fetch users

You are only selecting the `id` column from the table.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Fetch users


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway