Jump to content
php.lv forumi

pliz help


Braiens

Recommended Posts

Kads atsveidzina man luudzu atminju un pasaka prieksha ka bija?

Piem. man ir 2 db. 1 db prieksh kategorijam 2 prieksh ierakstiem... un man vajadzetu scriptiju kas sataisa shaadi

 

Blogi:

Kaklz

Kirils

 

IT:

Pods.Lv

BOOT.Lv

 

Manuāli:

lv.php.net

php-dev.lv

Link to comment
Share on other sites

Mja paldies par atsaucību :/ bet es jau izdariju visu ko man vajag

<?
    include("conf/conf.php");
         $db= mysql_connect($mysql_host, $mysql_user, $mysql_pass);
         mysql_select_db($mysql_db, $db);
         $result = mysql_query("SELECT type FROM `linku_t` ORDER by type ASC");
           while ($myrow = mysql_fetch_array($result))
            {
                $type = $myrow['type'];
               echo '
     <div class="news">
       <div class="nosauk">
         <strong>'.$type.'</strong>
       </div>

       <div class="txt">';
           $result2 = mysql_query("SELECT * FROM `links` Where type='$type' order by `title`");
           while ($myrow2 = mysql_fetch_array($result2))
            {
                $link = $myrow2['link'];
                $title = $myrow2['title'];
               echo '<a href="'.$link.'" target="_blank" title="'.$title.'">'.$title.'</a><br />';
            }
echo '        </div>
     </div>    ';
            }
?>

Link to comment
Share on other sites

×
×
  • Create New...