Ok here is the source...
btw... you can view the results at: http://www.csweb.net/php_test/test.php
<?php
$username="root";
$password="pass";
$hostname="localhost";
// Connect to Database
$dbh=mysql_connect($hostname, $username, $password)
or die("Unable to connect to Database");
$selected=mysql_select_db("rsod",$dbh)
or die("Unable to select rsod");
// $result = mysql_query("SELECT id, name, address, conviction, CONCAT('<img src=\"../php_test/images/',pic, '\" border=\"0\">') AS pic FROM main_tbl");
$sql = "
SELECT id
, Name
, Address
, Conviction
, CONCAT('<img src=\"./images/',main_tbl.Pic, '\" border=\"0\">') AS 'Picture' FROM
main_tbl
";
echo '<pre>'.$sql,'</pre>';
exit;
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
?>
<table border="1" cellspacing="5" width="600">
<tr><th align="left" width="100"><font face="Verdana" size="2"
color="#0000FF">Name:</font></th>
<td>
<?php print $row{'name'}."<br>"; ?>
</td><td rowspan="3" width="340"><?php print $row{'pic'}."<br>"; ?></td></tr>
<tr><th align="left" width="100"><font face="Verdana" size="2"
color="#0000FF">Address:</font></th>
<td><?php print $row{'address'}."<br>"; ?>
</tr>
<tr><th align="left" width="100"><font face="Verdana" size="2"
color="#0000FF">Conviction:</font></th>
<td>
<?php print $row{'conviction'}."<br>"; ?>
</td></tr>
</table>
<?php
}
// more to come
mysql_close($dbh);
?>
Thanks mucho