Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

uniq code for one product


amx_dk

Recommended Posts

Hi this is kind of a odd question. but lets say this code below should only be for one product. products_id=28

 

how do you alter this. something like=

$products_name=products_id=28 and so on.

 

 

 

<!-- Desciption //-->

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
 <tr >
   <td class="strong" ><?php echo $products_name; ?></td>
 </tr>
 <tr>
   <td> </td>
 </tr>
 <tr>
   <td><?php echo stripslashes($product_info['products_description']); ?></td>
 </tr>
 <tr>
   <td> </td>
 </tr>
 <tr>
   <td><span class="strong">Price</span><br>
   <?php echo $products_price; ?></td>
 </tr>


</table>
<!-- End Desciption //-->

Link to comment
Share on other sites

Hi this is kind of a odd question. but lets say this code below should only be for one product. products_id=28

 

how do you alter this. something like=

$products_name=products_id=28 and so on.

<!-- Desciption //-->

<table width="100%" ?border="0" cellspacing="0" cellpadding="0">
?<tr >
? ?<td class="strong" ><?php echo $products_name; ?></td>
?</tr>
?<tr>
? ?<td> </td>
?</tr>
?<tr>
? ?<td><?php echo stripslashes($product_info['products_description']); ?></td>
?</tr>
?<tr>
? ?<td> </td>
?</tr>
?<tr>
? ?<td><span class="strong">Price</span><br>
? ?<?php echo $products_price; ?></td>
?</tr>
</table>
<!-- End Desciption //-->

 

if ($product_info['products_id'] == '28') {
//do what you want for this products_id only
}

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...