Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

w3validator error


zeberrun

Recommended Posts

php 5, oscommerce 2,3,1 new_products.php

i added fr_curriencies_id but w3validator gives 60 errors.

but if i delete fr_curriencies_id w3validator says ok.

what is wrong?

 

like below

Line 158, Column 30: document type does not allow element "div" here

Line 192, Column 60: there is no attribute "onMouseOut"

 

 

<?php

// $findlastnumber = tep_db_query("select * from " . TABLE_PRODUCTS . " order by products_date_added DESC limit 1");

$getlastnumber = tep_db_fetch_array($findlastnumber);

$lastnumber = ($getlastnumber['products_id'] - '500');

 

if ($first_page === true){

if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {

//

list($usec, $sec) = explode(' ', microtime());

srand( (float) $sec + ((float) $usec * 100000) );

$mtm= rand();

$new_products_query = tep_db_query("select p.products_id, p.products_image, p.fr_currencies_id, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and

p.products_id > ".$lastnumber." order by rand($mtm) DESC limit " . MAX_DISPLAY_PRODUCTS_FIRST_PAGE);

// p.products_last_modified desc limit " . MAX_DISPLAY_PRODUCTS_FIRST_PAGE)

} else {

$new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.fr_currencies_id, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and

p.products_id > ".$lastnumber." order by rand($mtm) DESC limit " . MAX_DISPLAY_PRODUCTS_FIRST_PAGE);

// p.products_last_modified desc limit " . MAX_DISPLAY_PRODUCTS_FIRST_PAGE);

}

}else{

if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {

$new_products_query = tep_db_query("select p.products_id, p.products_image, p.fr_currencies_id, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and

p.products_id > ".$lastnumber." order by rand($mtm) DESC limit " . MAX_DISPLAY_NEW_PRODUCTS);

//p.products_last_modified desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

} else {

$new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.fr_currencies_id, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and

p.products_id > ".$lastnumber." order by rand($mtm) DESC limit " . MAX_DISPLAY_NEW_PRODUCTS);

//p.products_last_modified desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

price calculation

$p_price = '<span class="productSpecialPrice">' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']), $new_products['fr_currencies_id']) . '</span>';

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...