Gizmo Posted June 12, 2005 Report Share Posted June 12, 2005 Ielieku ciklaa lai man no datubaazes printeejas ieraksti, galaa sanaak tabula, kaa lai dabon to ka shiis tabulas krauj aaraa kaadaas 3 rindaas , nevis uzreiz vienu zem otras? Link to comment Share on other sites More sharing options...
Kristabs Posted June 12, 2005 Report Share Posted June 12, 2005 kas? kolonaas mejbii? izsakies skaidraak! Link to comment Share on other sites More sharing options...
Gizmo Posted June 12, 2005 Author Report Share Posted June 12, 2005 Vajag shitaa! 1.tabula | 2.tabula | 3.tabula 4.tabula | 5.tabula | 6.tabula 7.tabula | 8.tabula | 9.tabula 10.tabula | 12.tabula | 13.tabula Link to comment Share on other sites More sharing options...
bubu Posted June 12, 2005 Report Share Posted June 12, 2005 cssā: table { width: 30%; float: left; } Link to comment Share on other sites More sharing options...
Kristabs Posted June 12, 2005 Report Share Posted June 12, 2005 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>3 kolonas</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <table width="50%" border="1"> <?php include("connect.php"); $sql = "select * from test"; $rez = mysql_query($sql)or die(mysql_error()); $i = 3; while($row = mysql_fetch_array($rez)){ if($i % 3 == 0){ echo "<tr><td>{$row[value]}</td>"; } elseif($i % 3 == 1){ echo "<td>{$row['value']}</td>"; } elseif($i % 3 == 2){ echo "<td>{$row['value']}</td></tr>"; } $i++; } ?> </table> </body> </html> Link to comment Share on other sites More sharing options...
Gizmo Posted June 12, 2005 Author Report Share Posted June 12, 2005 O jaaa, paldies!! Link to comment Share on other sites More sharing options...
Gizmo Posted July 28, 2005 Author Report Share Posted July 28, 2005 Kā lai dobon to ka bildes paklaujas manis definētajiem <td> izmēriem un katra attieciigi samazinaas vai palielinaas attieciibaa pret oriģinālu? printf(" <table class=table2 align=center bgcolor=black height=200 width=150 border=0> <tr><td bgcolor=white width=150 height=150 align=center> <img align=center src=\"visi/%s.jpg\"> </td></tr> <tr><td bgcolor=gray height=50><font size=1>%s</font> </td></tr></table>",$row["nosaukums"],$row["nosaukums"]); Link to comment Share on other sites More sharing options...
bubu Posted July 28, 2005 Report Share Posted July 28, 2005 <img width="150" height="150" ... /> Link to comment Share on other sites More sharing options...
Gizmo Posted July 28, 2005 Author Report Share Posted July 28, 2005 eh iepriekš biški sajaucu... Bet tad viņš mazās bildītes baigi palielinās un izskatīsies sūdīgi, gribējās lai šādā gadījumā tomēr atstāj orģinālo izmēru. Link to comment Share on other sites More sharing options...
Gizmo Posted July 28, 2005 Author Report Share Posted July 28, 2005 Tiešām nau ideju kā dabūt lai <td width=150> neizplestos ja tajaa ieliek lielāku bildi? Variants <img width=150> neder jo attēlojamā bilde var būt arī mazāka un tad slikti izskatīsies. Link to comment Share on other sites More sharing options...
bubu Posted July 28, 2005 Report Share Posted July 28, 2005 Mozilla ony: max-width Lai IE ar būtu, vai nu php galā čeko bildes platumu, vai JS, man citu ideju nav :) Link to comment Share on other sites More sharing options...
Recommended Posts