Article View: es.comp.lenguajes.php
Article #155problema de variables
From: Gabi
Date: Thu, 04 Dec 2008 18:13
Date: Thu, 04 Dec 2008 18:13
46 lines
2155 bytes
2155 bytes
Estoy haciendo una web en 3 idiomas y he escogido el m�todo de hacerlo por
defines as� si la variable es =es carga el archivo donde est�n los defines
del idioma espa�ol al igul con el ingl�s y el franc�s.
En las banderitas del idioma tengo esto
if($lg==en){
$output="";}else{
$output= "<a href='?lg=en'><img src='imagenes/gb.gif' alt='ingl�s'
width='16' height='11' hspace='5' border='0'></a>";
}
echo $output;
?>
<?php
if($lg===fr){
$output="";}else{
$output= "<a href='?lg=fr'><img src='imagenes/fr.gif' alt='franc�s'
width='16' height='11' hspace='5' border='0'></a>";
}
echo $output;
?>
<?php
if($lg===es){
$output="";}else{
$output= "<a href='?lg=es'><img src='imagenes/es.gif' alt='espa�ol'
width='16' height='11' hspace='5' border='0'></a>";
}
echo $output;
?>
y lo recojo as�
<?php
if($lg="es"){
echo $row['descripcion_es'];
}
if($lg="en"){
echo $row['descripcion_en'];
}
if($lg="fr"){
echo $row['descripcion_fr'];
}
?>
y funciona bien con las p�gina sin variables pero en el momento de pasar
variables me pasa la url de la p�gina + el ?lg pero no las variables
Espero haberme explicado bien
�Alguna sugerencia?
Gracias
Gabi
Technical Details
Message-ID:
<gh96m5$pov$1@aioe.org>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.buerger.net!aioe.org!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 107579,8f1f2f76e7ece138,start X-Google-Attributes: gid107579,domainid0,public,usenet X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.buerger.net!aioe.org!not-for-mail From: "Gabi" <begabi@telefonica.net> Newsgroups: es.comp.lenguajes.php Subject: problema de variables Date: Thu, 4 Dec 2008 19:13:49 +0100 Organization: Aioe.org NNTP Server Lines: 48 Message-ID: <gh96m5$pov$1@aioe.org> NNTP-Posting-Host: 2vNEWo9Up0FRKdIarYurrg.user.aioe.org X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Thu, 4 Dec 2008 18:14:29 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-RFC2646: Format=Flowed; Original X-Notice: Filtered by postfilter v. 0.7.5 X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-Priority: 3 X-MSMail-Priority: Normal