1
risto
Lang definition like _MD_FRMYES from DB
  • 2004/4/15 8:34

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


How can I translate _MD_FRMYES if I get it from the DB?
I might get it as $frmval, but if i try printing it oput, I will as you know get "_MD_FRMYES".

How can I make XOOPS translate it?


2
Mithrandir
Re: Lang definition like _MD_FRMYES from DB

constant($variable);

3
risto
Re: Lang definition like _MD_FRMYES from DB
  • 2004/4/15 8:52

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


thanx

4
risto
Re: Lang definition like _MD_FRMYES from DB
  • 2004/4/15 9:08

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


Its not working

this is the code I'm woking on have a look.
<?php 
    $eventtypeq 
$xoopsDB->query("SELECT *    FROM ".$xoopsDB->prefix("leaguestats_event_types")); 
    
    while(
$typedata $xoopsDB->fetchArray($eventtypeq)){
        if(
$modeventdata[EventType]==$typedata[EventTypeID]){
            
$selected ="SELECTED";
        }else{
            
$selected="";
        }
        
$var =    $typedata[EventTypeName];
        print 
'<option value="' $typedata[EventTypeID] . '" ' $selected '>' constant($var) . '</option>';
    }            
?>

5
Mithrandir
Re: Lang definition like _MD_FRMYES from DB

_MD_FRMYES IS defined as a constant, right?

6
risto
Re: Lang definition like _MD_FRMYES from DB
  • 2004/4/15 17:12

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


nope!



soryy and thanks!

Login

Who's Online

94 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 94


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits