![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 19 Pomógł: 0 Dołączył: 3.01.2008 Ostrzeżenie: (0%) ![]() ![]() |
Mam taki kod:
Kod <table border="1" width="100%"> <tr> <td> <p align="center"> <img border="0" [b]src="pic/<? echo $nr; ?>.jpg"[/b] width="500" height="375"></td> </tr> </table> <table border="1" width="100%"> <tr> <td> <p align="center"> <a target="_self" [b]href="index.php?nr=1">[/b] <img border="0" src="pic/1.jpg" width="150" height="112"></a></td> <td> <p align="center"> <a target="_self" [b]href="index.php?nr=2"[/b]> <img border="0" src="pic/2.jpg" width="150" height="112"></a></td> <td> <p align="center"> <a target="_self" [b]href="index.php?nr=3"[/b]> <img border="0" src="pic/3.jpg" width="150" height="112"></a></td> </tr> </table> Po otwarciu strony widze tylko ikonki, nie ma żadnego głownego zdjecia. Jak tu ustawić pierwsze domyślne zdjęcie? Jeszcze jedno z innej półki: po pobraniu danych z bazy danych MySQL, umiem wyświetlić dane w formie tabeli, która składa się z jednej kolumny. Chce by kolumn było 4. Poniżej fragment kodu: Kod <table>
<?php $videolist = @mysql_query($select . $from . $where); if (!$videolist) { echo '</table>'; exit('<p>Video can not be load!!<br />'. 'Error: ' . mysql_error() . '</p>'); } while ($vid = mysql_fetch_array($videolist)) { $data = $vid['data']; $zdjecie = $vid['photo']; $tytul = $vid['titel']; $link = $vid['link']; echo "<tr valign='top'>\n"; echo "<img src='$zdjecie' width='80' height='60' >"; echo "<a href='index.php?videoId=$link' target='_parent'>". "Added: $data" . "<a href='index.php?videoId=$link' target='_parent'>PLAY NOW!</a>\n"; } ?> </table> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 09:05 |