User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 401,646 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,701 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

HELP!!!

Join Date: Jul 2007
Posts: 106
Reputation: Designer_101 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
Designer_101 Designer_101 is offline Offline
Junior Poster

Question HELP!!!

  #1  
Mar 21st, 2008
HI
CAN ANYONE SEE Y THIS IS ECHOING OUT TWICE THE AMOUNTS OF EACH FIELD IN MY DATABASE???

  1. <?php
  2. $count = 0;
  3. $data = array();
  4.  
  5. $query = "SELECT * FROM profile WHERE ID = '1' ";
  6. $result = MYSQL_QUERY($query);
  7. $line = mysql_fetch_array($result);
  8.  
  9. foreach ($line as $col_value) {
  10. $data[$count] = $col_value;
  11. echo $data[$count];
  12. $count++ ;
  13. };

MUCH APPRECIATED
Last edited by peter_budo : Mar 22nd, 2008 at 4:48 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 6:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC