djmartins Posted April 21, 2006 Report Share Posted April 21, 2006 Man ir table news kur ieksa ir rows title Piemers: Saule| Menes| utt un tagad to gribu izvadit ara tabulaa kas veidota ar html <?include("config.php"); $result = mysql_query("SELECT * FROM news;", $connect); while ($res = mysql_fetch_array($result)) { ?> <div class="block-title" id="title"><?echo ("$res[2]"); }?> </div> </div> Joks ir tads ka vins visus title izvada viena tabulaa tacu es gribu lai katram ir sava ,kaa to panakt? Link to comment Share on other sites More sharing options...
GedroX Posted April 21, 2006 Report Share Posted April 21, 2006 Diezgan neizprotams jautājums. Bet: 1) Kāpēc 2 aizverošie </div>? 2) Kas tas par stilu mainīgos likt pēdiņās? ("$res[2]") Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 21, 2006 Report Share Posted April 21, 2006 (edited) "><?echo ("$res[2]"); }?> Kaas tas taads par briinumu? iekavaas un vel peedinjaas? <?echo $res[2]; } ?> un viss... Edited April 21, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
Delfins Posted April 21, 2006 Report Share Posted April 21, 2006 Nu pirmkārt, tur nav nevienas tabulas tev... Otrkārt, īsti nav skaidrs kā tad tava `tabula` izskatās.. Link to comment Share on other sites More sharing options...
Recommended Posts