You can make a query only in the 1st page load.

Not in every pageload...

And you can make your uor template engines...  prepared with the
miltilanguage purpose...


Register an Array array of your result

IF (!$_SESSION[$strings]) {
    session_start();
    $_SESSION[$strings] = mysql_fetch_array($result);
}
echo "<HR><PRE>\n";
    print_r($_SESSION);
echo "</PRE><HR>\n";


"William Lam" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all.
>
> I've just got a project that develop a Traditonal Chinese (Big5) &
> Simplified Chinese (GB) web site.
>
> When I was working with multi-lingual web site, I used to stored every
> single string in the database and load it on each page. It's very slow.
>
> Is there a better method to do that?? Also any tutorial / article
available
> online??
>
> I've heard people to sue gettext to do it. I'm planning to use Smarty with
> my application, how should I work together?
>
> I'll be using PHP 4.23 with MySQL
>
> Thanks,
>
> William Lam
> Solution Specialist
> Zenon Consulting



-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to