Code: Select all
[syntax=php]<?php
require_once("models/vendors.php");
$vendor = new Vendors();
$vend = $vendor->getByVendorId($_GET['id']);
?>
<?php
$vendor->UpdateViewsCount
($total_views,$_GET['id']);
?>
<table width="400" align="center">
<tr>
<td colspan="2">
<img src="vend['image']"/> // HERE IS WHAT IS NOT WORKING, I HAVE TRIED SEVERAL Iterations
<tr>
<td>
<table border="0" width="400" cellpadding="0" cellspacing="0">
<tr>
<td style="padding: 5px;" valign="top">
<td style="padding: 5px">
<b>For more information about <?=$vend['company']?></b><br />
<a href="<?=$vend['website']?>" target="_blank"><?=$vend['website']?></a>
<br /><br />
<b>Contact:</b> <br />
<?=$vend['first_name']?> <?=$vend['last_name']?><br />
<?=$vend['Address_1']?><br />
<?=$vend['Address_2']?><br />
Phone: <?=$vend['mobile_phone']?><br />
Email: <a href="mailto:<?=$vend['email']?>"><?=$vend['email']?></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php /*}
<?php }*/ ?>