in reply to Re^6: using template on same page
in thread using template on same page

I don't see $variable1, $variable2, $variable3 used anywhere in your code posted here, what are they for ? And what is the value of $info ?

poj

Replies are listed 'Best First'.
Re^8: using template on same page
by bigup401 (Pilgrim) on Sep 17, 2018 at 16:05 UTC

    but its there wen u look at the code and $info is just user input to confirm weather there is an input from user to execute the condition

    but anyway am trying it differently coz it has given alot problem to me and monks to figure it out. just gone try other method to accomplish wat i want

      Your SQL 'SELECT FOO, BAR, MOO FROM tble ...' returns records with 3 fields FOO, BAR and MOO.

      If you want to display only the value in FOO use [% name.0 %] in the template, if BAR use [% name.1 %] and if MOO use [% name.2 %]. The values 0,1,2 corresponding to the position of each field in the select.

      Best practice would be to select only the fields you need.

      poj

        thanks poj for the advice. i got it now