i am a novice at using PHP and trying to do a very simple listing of items with a photo. The following code works fine for displaying the information in 2 columns however the images are not loading. The plan is to have the page loop through all the records in the recordset and display the data in 2 columns. Column one with the text - column two with image. I am using dreamweaver for creating the pages. I am sure it is something simple.
Help!!
thanks - domonic
<?php
mysql_select_db($database_nmma, $nmma);
$query_Provider = "SELECT * FROM providers";
$Provider = mysql_query($query_Provider, $nmma) or die(mysql_error());
$totalRows_Provider = mysql_num_rows($Provider);
while ($row_Provider = mysql_fetch_assoc($Provider)){
?>
<table width="500" height="71" border="0" class="subHeader">
<tr>
<td width="300"><span class="style6"><b><?php echo $row_Provider['ProviderName']; ?> <br />
<span class-"smalltext"><?php echo $row_Provider['Speciality']; ?></span></td>
<td width="200"><?php echo $row_Provider['Photo']; ?></td>
</tr>
<?php
}
?>
Help!!
thanks - domonic
<?php
mysql_select_db($database_nmma, $nmma);
$query_Provider = "SELECT * FROM providers";
$Provider = mysql_query($query_Provider, $nmma) or die(mysql_error());
$totalRows_Provider = mysql_num_rows($Provider);
while ($row_Provider = mysql_fetch_assoc($Provider)){
?>
<table width="500" height="71" border="0" class="subHeader">
<tr>
<td width="300"><span class="style6"><b><?php echo $row_Provider['ProviderName']; ?> <br />
<span class-"smalltext"><?php echo $row_Provider['Speciality']; ?></span></td>
<td width="200"><?php echo $row_Provider['Photo']; ?></td>
</tr>
<?php
}
?>