sofiks Posted June 12, 2012 Report Share Posted June 12, 2012 (edited) Lietoju align="right" iekš php table, tr, td, bet neiet. kāda no būtnem zin kas jādara, lai teksts ir labajā malā? Edited June 12, 2012 by sofiks Quote Link to comment Share on other sites More sharing options...
draugz Posted June 12, 2012 Report Share Posted June 12, 2012 Iepostē savu kodu! Quote Link to comment Share on other sites More sharing options...
briedis Posted June 12, 2012 Report Share Posted June 12, 2012 Nav tāda "php table" Quote Link to comment Share on other sites More sharing options...
codez Posted June 12, 2012 Report Share Posted June 12, 2012 http://jsfiddle.net/fWB5j/ Quote Link to comment Share on other sites More sharing options...
sofiks Posted June 12, 2012 Author Report Share Posted June 12, 2012 (edited) Ja kas esmu svaiga gaļa ...daudzko no visa nesaprotu echo "<table border='0'>"; echo"<tr>"; echo "<td width='500px' > <h3><h2>Pirmdiena!</h2> Pārsteidz savus darba kolēģus ar pinokkio tērpu <h3></td>"; echo "<td width='500px'> <h3>Otrdiena<h3> </td>"; echo "<td width='500px'> <h3>Trešdiena<h3> </td>"; echo "<td width='500px'> <h3>Ceturtdiena<h3> </td>"; echo "<td width='500px'> <h3>Piektdiena<h3> </td>"; echo "<td width='500px'> <h3>Sestdiena<h3> </td>"; echo "<td width='500px'> <h3>Svētdiena<h3> </td>"; echo"</tr>"; echo "</table>"; echo "<table #table td>"; echo"<tr >"; echo "<td width='500px'> <h3>Jaunums! gāzmaska, no 12 jūnija! Pārsteidz savus draugus ar stidzinošu izskatu! <h3> </td>"; echo "<td ><a target = 'blank' href='Atteli/" . $record["Attels"] . "' ><img height='342' width='242' src= 'Atteli/" . $record["Attels"] . "' /></a></td>"; Edited June 12, 2012 by sofiks Quote Link to comment Share on other sites More sharing options...
briedis Posted June 12, 2012 Report Share Posted June 12, 2012 Derētu pamācīties HTML un to, ka tagus vajag arī aizvērt. <h3>blabla<h3> <h3>blabla</h3> Redzi atšķirību? Quote Link to comment Share on other sites More sharing options...
sofiks Posted June 12, 2012 Author Report Share Posted June 12, 2012 (edited) paldies, tagad redzu. Bet tas teksts tāpat palika kurp palika :/ Edited June 12, 2012 by sofiks Quote Link to comment Share on other sites More sharing options...
draugz Posted June 12, 2012 Report Share Posted June 12, 2012 Kāpēc tu pats sev tā seržģī dzīvi! Uztaisi tabulas struktūru vienkāršā HTML un PHP lieto tikai utr kur to tiešām vajag Quote Link to comment Share on other sites More sharing options...
WHOAMi Posted June 12, 2012 Report Share Posted June 12, 2012 (edited) nopietni? www.w3schools.com Atradīsi HTML un CSS pamatus, jo izskatās Tev tie noderētu. Priekškam Te php vispār vajadzīgs? Lai samazina'tu koda garumu varētu arī mēģināt aizvērt PHP kodu ciet ?> un rakstīt HTML kodu kā pienākas un kad ir beigas HTML kodam no jauna atvērt PHP <?php un turpināt PHP kodu. Izmanto PHP tad kad vajag! <?php $a=0; if($a=0){ ?> <p>a=0</p> <?php }else{ ?> <p>a/=0</p> <?php } Tavā piemērā PHP tiek lieki izmantots. Ja gribi pakārtot tabulu saturu, tad tajā pašā linkā ko pievienoju iepazīsties ar CSS Styling Tables sadaļu. Edited June 12, 2012 by WHOAMi Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted June 12, 2012 Report Share Posted June 12, 2012 (edited) Ja kas esmu svaiga gaļa ...daudzko no visa nesaprotu echo "<table border='0'>"; echo"<tr>"; echo "<td width='500px' > <h3><h2>Pirmdiena!</h2> Pārsteidz savus darba kolēģus ar pinokkio tērpu <h3></td>"; echo "<td width='500px'> <h3>Otrdiena<h3> </td>"; echo "<td width='500px'> <h3>Trešdiena<h3> </td>"; echo "<td width='500px'> <h3>Ceturtdiena<h3> </td>"; echo "<td width='500px'> <h3>Piektdiena<h3> </td>"; echo "<td width='500px'> <h3>Sestdiena<h3> </td>"; echo "<td width='500px'> <h3>Svētdiena<h3> </td>"; echo"</tr>"; echo "</table>"; echo "<table #table td>"; echo"<tr >"; echo "<td width='500px'> <h3>Jaunums! gāzmaska, no 12 jūnija! Pārsteidz savus draugus ar stidzinošu izskatu! <h3> </td>"; echo "<td ><a target = 'blank' href='Atteli/" . $record["Attels"] . "' ><img height='342' width='242' src= 'Atteli/" . $record["Attels"] . "' /></a></td>"; kur tavā kodā ir ir align=right ??? <table> <tr> <td align="right" width="500px"> bla bla <?php echo $php_mainigais; ?> </td> <tr> </table> Edited June 12, 2012 by Grey_Wolf Quote Link to comment Share on other sites More sharing options...
sofiks Posted June 12, 2012 Author Report Share Posted June 12, 2012 Paldies izpalīdzīgie ļaudis, rīt sākšu tārpot, jūs man izskaidrojāt vairāk, nekā pasniedzējs 8 mēnešu laikā Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 12, 2012 Report Share Posted June 12, 2012 Es varu uztaisīt PHP table. Quote Link to comment Share on other sites More sharing options...
Kavacky Posted June 13, 2012 Report Share Posted June 13, 2012 Labs pasniedzējs, var pasniegt mēteļus. Quote Link to comment Share on other sites More sharing options...
sofiks Posted June 13, 2012 Author Report Share Posted June 13, 2012 Dievs ar viņu, rakt apakšā negribās, labak te pabiedēšu cilvēkus cik tupi studenti var būt :DDD. Bet php table gribu pats iemācīties taisīt, jo kāda jēga ka man citi to darīs? :O Quote Link to comment Share on other sites More sharing options...
WHOAMi Posted June 13, 2012 Report Share Posted June 13, 2012 Dievs ar viņu, rakt apakšā negribās, labak te pabiedēšu cilvēkus cik tupi studenti var būt :DDD. Bet php table gribu pats iemācīties taisīt, jo kāda jēga ka man citi to darīs? :O cepums tev un tādiem, kuriem ir kaut mazliet vēlme parakties kodā un programmēšanas valodu dokumentācijās. savādāk liekas, ka ir iesākusies copy&paste un "pasniedz man uz paplātes" ēra. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.