Jump to content

Recommended Posts

I need to access data from a database and repeat the display for how many rows there are...Well I figured out the whole repeat thing I just can't make it go to the next row when it outputs...

 

 


<?php 

								$pages = $totalRows_dallas ;									

									while( $pages > 0 ) { ?>
                                
                           	<li >
				<a target="quote"  onmouseover="changemap(<?php echo $row_dallas['latitude']; ?>, <?php echo $row_dallas['longitude']; ?>, <?php echo $row_dallas['zoom']; ?>);" href="int_quote.php?id=<?php echo $row_dallas['id']; ?>">
                                    		<span style="float:right"> <input type="button" name="3" value="Add Store" /></span>
                                    		<?php echo $row_dallas['name']; ?><br />
                                    		<?php echo $row_dallas['address']; ?><br />
                                    		<?php echo $row_dallas['city']; ?>, <?php echo $row_dallas['state']; ?> <?php echo $row_dallas['zip']; ?>
				</a>
                           	  </li>
                                
                                <?php $pages--; } ?>

 

 

RESULT: I'm getting the same row of info repeated

 

WHAT I NEED: is for when it repeats it grabs the next row in order from 'id'

 

 

Thanks so much in advance for any help!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.