Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Parse error: syntax error


MichelleD

Recommended Posts

Posted

When I try to pull up my website all I get is this:

 

Parse error: syntax error, unexpected T_VARIABLE in /home/newag31/public_html/store/includes/functions/general.php on line 483

 

I was working in two files:

 

public_html / store / includes / functions /html_output.php

 

toggling back and forth with this coding:

 

$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));

 

$countries_array = array(array('id' => '223', 'text' => 'United States'));

 

 

 

and

 

I was working in this file:

 

public_html / store / includes / functions / general.php

 

toggling back and forth with this coding:

 

 

return $country_array['countries_name'];

 

return $country_array['my_country'];

 

 

I did save both files in word pad originally and uploaded the original files but the message still comes up. I deleted files and refreshed IE browser and yes unfortunately just the error message comes up at my site.

 

My objective was to set the Countries to United States ONLY not all countries. Here is the original coding for ALL Countries:

 

 

$countries_array = array(array('id' => '223', 'text' => 'United States')); in html_output.php

and

 

return $country_array['countries_name']; in general.php

 

 

 

Help please!! :( newbie

Posted

don't fuss with general.php but in html_output.php find this:

 

$countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);

 

and replace with this:

 

$countries_array = array(array('id' => '223', 'text' => 'United States'));

Archived

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

×
×
  • Create New...