Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: parse error in english/index.php


Dubai

Recommended Posts

here we go agine, i have another error.

its says

Parse error: parse error in english/index.php on line 14

please see the page here --------------

 

 

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'H.M.G.T is U.A.E based Company spreading its wings across the Middle East area and G.C.C countries. H.M.G.T currently the sole agent and/or the distributor of a range of fine food products, pet food, vending machines and its supplies, and automotive asles and parts.<b>To serve our customers more, we have lunched our state or the art online shop. Now you are able to check, order and pay online, all in one place.</b>. if you need more information please chat with us using MSN messnger account [email protected] <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Distributors</b><br><br>We are looking for distributors for our range of products, please call us at +97150 525 3223 or email us at [email protected] for more information.

'</b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'HMGT Online Shop');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

?>

Link to comment
Share on other sites

on this line:

tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main"

should be:

tep_image(DIR_WS_IMAGES . 'default/1.gif') . \'</td><td class="main"
Link to comment
Share on other sites

'</b></font>.');

change to

</b></font>.');

 

or maybe that code is not meant to be there thus

information. 
'</b></font>.');

 

should be

information.');

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

hi,

 

i did what u said but the layout have changed

look at http://marketgulf.net/catalog/

 

the code is -------

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'H.M.G.T is U.A.E based Company spreading its wings across the Middle East area and G.C.C countries. H.M.G.T currently the sole agent and/or the distributor of a range of fine food products, pet food, vending machines and its supplies, and automotive asles and parts.<b>To serve our customers more, we have lunched our state or the art online shop. Now you are able to check, order and pay online, all in one place.</b>. if you need more information please chat with us using MSN messnger account [email protected] <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Distributors</b><br><br>We are looking for distributors for our range of products, please call us at +97150 525 3223 or email us at [email protected] for more information.');

 

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'HMGT Online Shop');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

what am I meant to be seeing this is as it would appear from the codes that you have and is caused by the open table in the define('TEXT_MAIN

 

close the table or exclude the table. I do not know what you want to have in the text main so can only work with the codes given, this being to correct a parse error to which I ave done.

 

as I say remove or close the table in the define this will sort out the layout

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

please take time to visit the site.

u will see that the words Distributors and the rest after it shifted to the left

as well the new products it was filling the page but now it went to the right side..

Link to comment
Share on other sites

I have looked at the site and I have given you an explanation as to why it is happening which was due to the open table.

 

What is now required is for you to state whether or not you wish a table and whether or not you wish the gif number 1 or for you to close that table or remove the table

 

<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' .

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

girls , guys this is still not working

any one can help me please ?

web site address: http://marketgulf.net/catalog/

there eror is : Parse error: parse error

catalog/includes/languages/english/index.php on line 14

please note that im not php expert so be kind and cool with me.. every time i do something it give me a parse erorr somewhere else

 

the code is :

----------------------

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'H.M.G.T is U.A.E based Company spreading its wings across the Middle East area and G.C.C countries. H.M.G.T currently the sole agent and/or the distributor of a range of fine food products, pet food, vending machines and its supplies, and automotive asles and parts.<b>To serve our customers more, we have lunched our state or the art online shop. Now you are able to check, order and pay online, all in one place.</b>. if you need more information please chat with us using MSN messnger account [email protected] <br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Distributors</b><br><br>We are looking for distributors for our range of products, please call us at +97150 525 3223 or email us at [email protected] for more information.

'</b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'HMGT Online Shop');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

The issue remains the same as my last post to which you have declined to respond thus the issue is still in limbo.

 

A sufficient reply to my earlier post would /could and can bring about a resolve to the issue and all that it takes is for you to respond to the information given.

 

If you do not want the table then the code can be ammended to remove the table, the same goes for the gif, if you wish to keep both or either then likewise the code can be ammended, either way the code can be ammended for you if you would only advise as to what it is that you wish.

 

I am not in any way trying to have a go at you I am but trying to help you, however you seem to have deemed not to want this help and I am not a mind reader.

 

The error is easily resolved in no time at all, however without knowing what it is that YOU want then the issue cannot be resolved unless the descision is taken out of your hands and an ammended code is provided which either removes the gif, removes the table or closes the table and sets the layout codes as required.

 

Now if I was to border on the rude then I would say does this make sense when reading

define('HEADING_TITLE', 'Let\'HMGT Online Shop');

no it does not as it would not be a case of HMGT being an apostrophe extension

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

Steve im so sorry about that

well i didnt understand what u said first of all, now i do understand

 

i want the text " H.M.G.T is U.A.E based Company spreading its wings across the Middle East area and G.C.C countries. H.M.G.T currently the sole agent and/or the distributor of a range of fine food products, pet food, vending machines and its supplies, and automotive asles and parts.<b>To serve our customers more, we have lunched our state or the art online shop. Now you are able to check, order and pay online, all in one place

 

if you need more information please chat with us using MSN messnger account [email protected] "

 

also the text " DistributorsWe are looking for distributors for our range of products, please call us at +97150 525 3223 or email us at [email protected] for more information. "

 

and i want the" new items " to be just like how its now ..

 

does that answer your qustion ? PS i dont want the Gif of number one

 

thanks in advance

Link to comment
Share on other sites

<?php
/*
$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright ? 2003 osCommerce

Released under the GNU General Public License
*/

define('TEXT_MAIN', 'H.M.G.T is U.A.E based Company spreading its wings across the Middle East area and G.C.C countries. H.M.G.T currently the sole agent and/or the distributor of a range of fine food products, pet food, vending machines and its supplies, and automotive asles and parts.<b>To serve our customers more, we have lunched our state or the art online shop. Now you are able to check, order and pay online, all in one place.</b>. if you need more information please chat with us using MSN messnger account [email protected] <br><br><b>Distributors</b><br><br>We are looking for distributors for our range of products, please call us at +97150 525 3223 or email us at [email protected] for more information.');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
define('HEADING_TITLE', 'HMGT Online Shop');
define('TABLE_HEADING_IMAGE', '');
define('TABLE_HEADING_MODEL', 'Model');
define('TABLE_HEADING_PRODUCTS', 'Product Name');
define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
define('TABLE_HEADING_QUANTITY', 'Quantity');
define('TABLE_HEADING_PRICE', 'Price');
define('TABLE_HEADING_WEIGHT', 'Weight');
define('TABLE_HEADING_BUY_NOW', 'Buy Now');
define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
define('TEXT_SHOW', '<b>Show:</b>');
define('TEXT_BUY', 'Buy 1 \'');
define('TEXT_NOW', '\' now');
define('TEXT_ALL_CATEGORIES', 'All Categories');
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
define('HEADING_TITLE', 'Categories');
}
?>

 

class this as a first draft the layout can be ammended once in place i.e. what is required in bold and what is not required in bold also what spacing is required etc.

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

no worries,

 

just the spelling typos to do now then "lunched" change to launched as lunched is to eat ;)

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...