Current location: Hot Scripts Forums » Other Discussions » Database » double values


double values

Reply
  #1 (permalink)  
Old 05-29-09, 02:28 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
double values

Hi there..

I got this code snippet in my script:


PHP Code:

$uitgavegegevens mysql_query("SELECT * FROM Folder012009 WHERE id='1' ") or die(mysql_error());

$rijen mysql_fetch_array($uitgavegegevens);        
        
$rowvul2 implode($rijen);
echo 
"$rowvul2<br><br>"
For some reason the values in the DB are duplicated in $rijen... so in the DB I placed "test1, test2, test3, test4" in the first 4 row
and it echo's "test1 test1 test2 test2 test3 test3 test4 test4"

Where does the duplication come from?

_j
Reply With Quote
  #2 (permalink)  
Old 05-29-09, 04:45 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
It's explained at the mysql_fetch_array's manual page on php.net. Check the "Return Values" section.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Auto Dealer Script nuzzle PHP 17 04-14-10 08:34 PM
[SOLVED] Friend to Friend Shortest Path sandeep.kumar Database 51 01-15-09 03:12 AM
MySQL table problem perleo PHP 9 12-16-03 01:16 PM
Double Insert Values ? Curiousguy PHP 1 09-09-03 06:27 PM


All times are GMT -5. The time now is 05:08 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.