
November 2nd, 2006, 09:43 PM
|
|
|
|
Join Date: Apr 2007
Posts: 25
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
img src in php and ajax
I added a field to mysql table called "pic" and added links to images. Does anyone know the syntax to replace $item with img src links. I've run out of ideas.
php Code:
Original
- php Code |
|
|
|
<h2>(S)Ajax Example</h2> <p>In this example the fields are updated automatically in the DB when the item is dropped, using the AJAX method (SAJAX to implement with PHP)</p> <br /> <ul id="sajax1" class="sortable boxy"> <?php $r = mysql_query("SELECT * FROM layout WHERE `set` = 'sajax1' ORDER BY `order` ASC"); { 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"); { echo '<li id="'. $rw['item']. '">'. $rw['item']. '</li>'; } ?> </ul>
|