Reply to Re: PHP SELECT Case and Passing Variable problem.

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация