Page 1 of 1

How to insert this code in tag

Posted: Wed Mar 22, 2006 2:34 pm
by MichaelK
Question.

I have an fansysteem and I wanna put this into a tag but won't work.
This is my php file:




Untitled Document






 
   
    FanLijst
      A
        - B - C
        - D - E
        - F - G
        - H - I
        - J - K
        - L - M
       
        N - O
        - P - Q
        - R - S
        - T - U
        - V - W
        - X - Y
        - Z
     
       
          Gebruikersnaam
          Echte naam
          Leeftijd
       
       
       
          ">
         
         
           
         
       
       
     
       
       
   
 



How can I insert this code above?

Re: How to insert this code in tag

Posted: Wed Mar 22, 2006 3:19 pm
by calguy1000
put {literal} and {/literal} tags around your php stuff.

Re: How to insert this code in tag

Posted: Wed Mar 22, 2006 3:46 pm
by MichaelK
calguy1000 wrote: put {literal} and {/literal} tags around your php stuff.

http://www.kane-fansite.nl/index.php?page=fanprofiel

That works fine but when I click on the letter A it won't work anymore.
Also with index.php?page=fanprofiel?beginletter=A won't work. How can I fix this?

Kind Regards,
Michael


PS
My output show this
and more of that stuff??? ???

Re: How to insert this code in tag

Posted: Thu Jun 01, 2006 4:26 pm
by streever
having a similar problem with php...

here is my code:

which is pulling from a database into an tag to set the path.

Now, it has to be done that way, this is vital.

My question is why won't it work?

I did do this:
{literal}{/literal}

that just causes the SOURCE to show this:


so, I need a way for PHP to be put on the page, that is then rendered on the server (which can--and does--render it elsewhere that's not within the templates)

IF you go here: http://boc.355warrenstreet.com/--and pick "ridesheets" you'll see all the source code.

Thank you!

Re: How to insert this code in tag

Posted: Thu Jun 01, 2006 4:30 pm
by calguy1000
make sure that this is set in your config.php file:

Code: Select all

$config['use_smarty_php_tags'] = true;
Then

Code: Select all

{php}echo $rimg;{/php}

Re: How to insert this code in tag

Posted: Thu Jun 01, 2006 5:36 pm
by streever
thank you, i appreciate it!