Posted by Jerry Stuckle on 12/08/07 12:42
cgkh.webservices wrote:
> Ok! I am going nuts!
>
> I am migrating a client's website from one domain to another with the
> same hosting provider.
>
> On the old site I had a car hire page which offered data in 4
> languages using a very basic php/mysql SELECT CASE syntax.
>
> It can be seen here:
>
> Default English version:
>
> http://www.solpraiaferias.com/fred/index_template.php
>
> Portuguese Version:
>
> http://www.solpraiaferias.com/fred/index_template.php?option=pt
>
> This works fine!
>
> However, I am now trying to migrate the site to http:// www.paraisolpraia.com
> with the same hosting company.
>
> Default English version:
>
> http://www.paraisolpraia.com/carhirealgarve/index_template.php
>
> This works fine.
>
> HOWEVER, and here is the rub:
>
> When submitting the url for the Portuguese Version:
>
> http://www.paraisolpraia.com/carhirealgarve/index_template.php?option=pt
>
> The server ONLY serves up the Default English text. I have checked the
> MYSQL database tables on both sites and they are both the same.
>
> It appears that the variable '?option=pt' is not being passed on the
> new site. The same happens with the other languages and I know the
> data is in the MYSQL table.
>
> I admit that I am not a very experienced programmer but have had the
> old site working for 18 months without problems.
>
> The relevant PHP code is here:
>
> "
>
> <?php
>
>
> I have tried with a close database statement as well to no avail.
>
> I have also cleared my cache and tried accessing the page on different
> browsers and machine. No result.
>
> I would really appreciate any advice that anyone could give.
>
> Many Thanks
>
> Chris
>
>
What is the statement
$_POST['option'];
supposed to do? Maybe instead you want
$option = $_POST['option'];
What's the difference between the two systems? Different PHP versions?
Different options? Run phpinfo() on both systems and compare the
output.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|