Ļoti atvainojos par savu kļūdu, ne no tā faila iekopēts kods.
Šeit būs īstais:
$lang_id = $_GET["lang_id"];
$cont = $_GET['content'];
if($cont != "gallery"){
$q=mysql_query("SELECT * FROM navi WHERE ident = '$cont' AND lang_id = '$lang_id'");
$w=mysql_fetch_array($q);
$pluginid = $w['plugin'];
$q1=mysql_query("SELECT * FROM plugin WHERE id = '$pluginid'");
$w1=mysql_fetch_array($q1);
$db = $w1['db'];
$info=mysql_query("SELECT * FROM ".$db." WHERE lang_id = '$lang_id'");
$inf=mysql_fetch_array($info);
echo
'
<table cellpadding="0" cellspacing="0" width="680">
<tr>
<td width="680" height="10" valign="top"></td>
</tr>
<tr>
<td width="680" height="20" class="content_title" valign="top">'.$inf['title'].'</td>
</tr>
<tr>
<td width="680" height="4" valign="top"></td>
</tr>
<tr>
<td width="680" class="content_text" valign="top">'.$inf['text'].'</td>
</tr>
<tr>
<td width="680" height="4" valign="top"></td>
</tr>
<tr>
<td width="680" height="20" class="content_bottom" valign="top"></td>
</tr>
</table>
';
}else{
Varbūt neloģisks, bet nu kādas man tās zināšanas un pieredze ir, tāda nu ir.