|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
chezsands Smarty Rookie
Joined: 20 Apr 2007 Posts: 6
|
Posted: Fri May 11, 2007 1:24 pm Post subject: probleme de débutant |
|
|
Bonjour
j ai une requette mysql dans mon fichier php je mets tous les reslutats dans un tabelau
dans mon template
Code: |
{section name=el_moncontenu loop=$moncontenu}
{$moncontenu[el_moncontenu].id_pages}
{$moncontenu[el_moncontenu].titre_pages|stripslashes}
{/section}
|
j ai besoin de faire des traitemement dans mon template avant en php j avais
Code: |
$nom_lieu = stripslashes($row2['nom_lieu']);
$ville_lieu = stripslashes($row2['ville_lieu']);
$adresse_lieu = stripslashes($row2['adresse_lieu']);
$zip_lieu = stripslashes($row2['zip_lieu']);
$googlemaps = str_replace(" ","+",stripslashes($adresse_lieu))."+".str_replace(" ","+",stripslashes($zip_lieu))."+".str_replace(" ","+",stripslashes($ville_lieu));
$googlemaps = "http://maps.google.fr/maps?f=q&hl=fr&q=" .urlencode($googlemaps);
|
je voudrais pouvoir faire la meme chose dans mon template
j espere que vous m avais compris |
|
Back to top |
|
mumuri Smarty Rookie
Joined: 06 Apr 2008 Posts: 27
|
|
Back to top |
|
mhurier Smarty n00b
Joined: 20 Aug 2008 Posts: 4
|
Posted: Wed Aug 20, 2008 1:54 pm Post subject: merci |
|
|
yes merci |
|
Back to top |
|
mumuri Smarty Rookie
Joined: 06 Apr 2008 Posts: 27
|
Posted: Sun Sep 07, 2008 1:43 pm Post subject: |
|
|
de rien bon courage pour ton site |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|