Jump to content

image src links in dd.php??


danxavier

Recommended Posts

has any one tried to <img src> link an image in the dd.php script? If so, i'm trying to figure out the syntax. The field in mysql that contains the links is called "pic".

This is the relevant code:

[code]<ul id="sajax1" class="sortable boxy">
  <?php
$r = mysql_query("SELECT * FROM layout WHERE `set` = 'sajax1' ORDER BY `order` ASC");
while($rw = mysql_fetch_array($r))
{
  echo '<li id="'.$rw['item'].'">'.$rw['item'].'</li>';
}
?>
</ul>

<ul id="sajax2" class="sortable boxy">
  <?php
$r = mysql_query("SELECT * FROM layout WHERE `set` = 'sajax2' ORDER BY `order` ASC");
while($rw = mysql_fetch_array($r))
{
echo '<li id="'.$rw['item'].'">'.$rw['item'].'</li>';
}
?>

</ul>[/code]
Link to comment
https://forums.phpfreaks.com/topic/26026-image-src-links-in-ddphp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.