General Car Related Discussion. To discuss anything that is related to cars and automotive technology that doesnt naturally fit into another forum catagory.

Any php/sql gurus on board?

Thread Tools
 
Search this Thread
 
Old Jul 26, 2005 | 07:01 PM
  #1  
SimonT's Avatar
SimonT
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,431
Likes: 0
Default Any php/sql gurus on board?

Code:
			  $query = "select filename from gallery where user_id=2 and djp_id > 0 ";
			  $result = mysql_query($query) or die("Unable to process mysql statement. See below for details.
".mysql_error());
			  		if ($row=mysql_fetch_array($result)) { 
					
					echo $row ["filename"] . "

";
					
					
													}	
					else {
							
					echo "No pics set from profile" . "

";
					
					}
Now when I run the query in mysql admin I get more than one result.

Yet the php part on my website only displays one result and I cant figure out why :-?

any help?
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
DixieTheKid
Ford Sierra/Sapphire/RS500 Cosworth
11
Jun 6, 2020 11:20 AM
RSmark84
General Car Related Discussion.
19
Sep 13, 2015 01:29 PM
hopper350
Garage / Workshop & Tools Section.
2
Sep 4, 2015 12:53 AM
Escortdriver1
Ford RS Cosworth Parts for Sale
1
Aug 19, 2015 09:02 PM




All times are GMT. The time now is 11:05 PM.