Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product added date on admin/categories.php


Guest

Recommended Posts

i'm trying to set the date as NOW, if there is a new product being added.

if it's a product being edited, i'm trying to allow the product date to be whatever it is in the database.

 

what am i doing wrong for this query:

<td class="main">
<?php
if ($HTTP_POST_VARS['products_date_added'] == "") {
echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' '
. tep_draw_input_field('products_date_added', date('Y-m-d h:m:s'));
} else {
echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_date_added', $pInfo->products_date_added);
}
?>
</td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...