Braiens Posted November 7, 2004 Report Share Posted November 7, 2004 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 More sharing options...
Braiens Posted November 7, 2004 Author Report Share Posted November 7, 2004 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 More sharing options...
Aleksejs Posted November 7, 2004 Report Share Posted November 7, 2004 Mja paldies par atsaucību :/ Nu, lūdzu b-; Vai tiešām tu nopietni ceri, ka svētdienas dienā kāds obligāti visu laiku sēž forumā un to vien gaida kā paprogrammēt PHP? (-; Link to comment Share on other sites More sharing options...
bubu Posted November 8, 2004 Report Share Posted November 8, 2004 Piem. man ir 2 db. 1 db prieksh kategorijam 2 prieksh ierakstiem... Vai tik tu nedomāji tabulas, nevis db? Link to comment Share on other sites More sharing options...
Recommended Posts