Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

upcoming_products.php on line 13


mermermer

Recommended Posts

I keep getting upcoming_products.php on line 13

 

Parse error: parse error in upcoming_products.php on line 13

 

my upcoming_products.php :

 

<?php

/*

$Id: upcoming_products.php,v 1.28 2004/03/14 13:55:39 mevans Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2004 osCommerce

 

Released under the GNU General Public License

*/

 

$Qupcoming = $osC_Database->query('select p.products_id, pd.products_name, p.products_date_available as date_expected, p.products_status from :table_products p, :table_products_description pd where p.products_status = '1' and to_days(p.products_date_available) >= to_days(now()) and p.products_id = pd.products_id and pd.language_id = :language_id order by :expected_products_field :expected_products_sort limit :max_display_upcoming_products');

$Qupcoming->bindRaw(':table_products', TABLE_PRODUCTS);

$Qupcoming->bindRaw(':table_products_description', TABLE_PRODUCTS_DESCRIPTION);

$Qupcoming->bindInt(':language_id', $osC_Session->value('languages_id'));

$Qupcoming->bindRaw(':expected_products_field', EXPECTED_PRODUCTS_FIELD);

$Qupcoming->bindRaw(':expected_products_sort', EXPECTED_PRODUCTS_SORT);

$Qupcoming->bindInt(':max_display_upcoming_products', MAX_DISPLAY_UPCOMING_PRODUCTS);

$Qupcoming->execute();

 

if ($Qupcoming->numberOfRows() > 0) {

?>

<!-- upcoming_products //-->

<tr>

<td><br><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="tableHeading"> <?php echo TABLE_HEADING_UPCOMING_PRODUCTS; ?> </td>

<td align="right" class="tableHeading"> <?php echo TABLE_HEADING_DATE_EXPECTED; ?> </td>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator(); ?></td>

</tr>

<?php

$row = 0;

while ($Qupcoming->next()) {

$row++;

if (($row / 2) == floor($row / 2)) {

echo ' <tr class="upcomingProducts-even">' . "\n";

} else {

echo ' <tr class="upcomingProducts-odd">' . "\n";

}

 

echo ' <td class="smallText"> <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $Qupcoming->valueInt('products_id')) . '">' . $Qupcoming->value('products_name') . '</a> </td>' . "\n" .

' <td align="right" class="smallText"> ' . tep_date_short($Qupcoming->value('date_expected')) . ' </td>' . "\n" .

' </tr>' . "\n";

}

?>

<tr>

<td colspan="2"><?php echo tep_draw_separator(); ?></td>

</tr>

</table></td>

</tr>

<!-- upcoming_products_eof //-->

<?php

 

$Qupcoming->freeResult();

}

?>

 

I can se what there is wrong

 

Martin.

Link to comment
Share on other sites

I am not sure but could the '1' first ' be escaping the code before the end ');

 

is this a snapshot version code

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I posted some code in this thread which someone used and said it was working

 

Click here

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...