Hi guys, I'm working on integrating a site with x-cart, and I'm having some trouble's with these smarty templates. I have this php file & I'm not too sure how I should implement this as a template. I've been reading tutorials all day, but I'm still not sure how I should tackle this, if somebody could point me in the right direction it would be much appreciated.
This is the basic PHP file that I need to implement.
Code:
<?php require_once('../../Connections/cart.php'); ?>
<?php
mysql_select_db($database_cart, $cart);
$query_test = "SELECT wheel_id, Make, Type, Wheel_Size FROM wheels";
$test = mysql_query($query_test, $cart) or die(mysql_error());
$row_test = mysql_fetch_assoc($test);
$totalRows_test = mysql_num_rows($test);
?>
<table border="1">
<tr>
<td>wheel_id</td>
<td>Make</td>
<td>Type</td>
<td>Wheel_Size</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_test['wheel_id']; ?></td>
<td><?php echo $row_test['Make']; ?></td>
<td><?php echo $row_test['Type']; ?></td>
<td><?php echo $row_test['Wheel_Size']; ?></td>
</tr>
<?php } while ($row_test = mysql_fetch_assoc($test)); ?>
</table>
Thanks for any help!