macromedia.dreamweaver.appdev
[Top] [All Lists]

Re: Randon Records

Subject: Re: Randon Records
From: David Powers
Date: Fri, 08 Aug 2008 20:02:02 +0100
Newsgroups: macromedia.dreamweaver.appdev


Rabastan99 wrote:
 I tried a repeat region before, it insisted on laying them out vertically.

If that's the case, you applied the repeat region incorrectly.


I did try to copy and paste you code in and got a blank white page. I added code to show errors at the top of the page and got nothing.

That suggests a PHP syntax error. I was simply adapting your script, and it's possible that I omitted a quote or semicolon somewhere. The following code is taken from a test page that I have just created, and it definitely works, but you'll need to adapt it to your recordset and file structure.

<td>
  <?php do { ?>
<img src="images/<?php echo $row_getThumbs['image']; ?>" alt="random image" />
  <?php } while ($row_getThumbs = mysql_fetch_assoc($getThumbs)); ?>
</td>

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

<Prev in Thread] Current Thread [Next in Thread>