Techno Posted April 28, 2008 Report Share Posted April 28, 2008 Ka lai uztaisu tādu news sistēmu kad foruma sadalā jaunumi kaudkas ir pierakstīts tas uzreiz parādas weba . Link to comment Share on other sites More sharing options...
Vebers Posted April 28, 2008 Report Share Posted April 28, 2008 Kur problēma? Izvelk no foruma datubāzes un attēlo to webā, k-gan forums jau ari ir web`s :p Link to comment Share on other sites More sharing options...
Techno Posted April 28, 2008 Author Report Share Posted April 28, 2008 ne nu to ja bet man tur tikai viens news radas visu laiku viens un tas pats , ka lai sataisa ka jauni visu laiku radas ? Link to comment Share on other sites More sharing options...
Vebers Posted April 28, 2008 Report Share Posted April 28, 2008 Tapēc, ka drosi vien neizmanto ciklu, lai attēlotu visus no DB iegūtos ierakstus. Link to comment Share on other sites More sharing options...
Kavacky Posted April 28, 2008 Report Share Posted April 28, 2008 Raksti ziņas un rādīsies jaunas. Link to comment Share on other sites More sharing options...
Techno Posted April 28, 2008 Author Report Share Posted April 28, 2008 Tapēc, ka drosi vien neizmanto ciklu, lai attēlotu visus no DB iegūtos ierakstus. Un varbūt tu vari parādīt kā tam ciklam būtu jāizskatās ? Link to comment Share on other sites More sharing options...
mounkuls Posted April 29, 2008 Report Share Posted April 29, 2008 Mēs jau nezinām kādu forumu esi uzlicis... Vai nu ciklā, vai vienkārši ar rand() un normālu kveriju izdabūt to jāvar. Link to comment Share on other sites More sharing options...
Vebers Posted April 29, 2008 Report Share Posted April 29, 2008 (edited) $query = "select id, title, intro from news order by id desc"; $dataQuery = mysql_query($data); while($line = mysql_fetch_array($dataQuery, MYSQL_ASSOC)) { echo $line['title'] . '<br />' . $line['intro'] . '<br />----------------<br />'; } ideja skaidra ? Edited April 29, 2008 by Vebers Link to comment Share on other sites More sharing options...
Techno Posted April 29, 2008 Author Report Share Posted April 29, 2008 $query = "select id, title, intro from news order by id desc"; $dataQuery = mysql_query($data); $data = mysql_fetch_array($dataQuery, MYSQL_ASSOC); if(!empty($data)) foreach($data as $line) { echo $line['title'] . '<br />' . $line['intro'] . '<br />----------------<br />'; } ideja skaidra ? ja tagad apmēram skaidra Link to comment Share on other sites More sharing options...
foxsk8 Posted May 1, 2008 Report Share Posted May 1, 2008 Nu var jau phpbb lietot + ezportal modifikāciju + rokas taisnā lenķī un ar svaigu prātu. Kā piemērs: http://www.notepad.lv Link to comment Share on other sites More sharing options...
Recommended Posts