|
-
February 4th, 2007, 09:43 PM
#1
[RESOLVED] Loop Problem!
Trying to code a news section for the first page of of my site. I have it set to loop to retrieve all news articles with section value of 1 from the database.
Code:
while($myrow=mysql_fetch_array($result))
But the way the script is running will only display 1 result. If the top (first) result is no longer valid eg. make give the message a deleted value. It will display the next result. But will not list more than 1 at a time. I've attached the file to this post. Any and all help is appreicated.
-
February 4th, 2007, 11:57 PM
#2
Re: Loop Problem!
You have two SQL queries with the same variable names. Change the second SQL query variable names.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
February 5th, 2007, 12:15 AM
#3
Re: Loop Problem!
That got it thx bro. Appreciate the help.
-
February 5th, 2007, 09:09 AM
#4
Re: Loop Problem!
 Originally Posted by cypher5783
That got it thx bro. Appreciate the help.
You're welcome.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|