![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 23 Pomógł: 0 Dołączył: 23.01.2003 Ostrzeżenie: (0%) ![]() ![]() |
mam nastepujacy kod ::
Cytat while (!feof($filmy)):
$event =fgets($filmy,4096); $info =explode(";;",$event); print "<tr><td width=30>"; print verdana(); print "<center>$info[0]</center>"; print "</td>"; print "<td width=220>"; print verdana(); print "$info[1]"; print "</td>"; print "<td width=220>"; print verdana(); print "$info[2]"; print "</td>"; print "<td width=20>"; print verdana(); print "<center>$info[3]</center>"; print "</td>"; print "<td width=150>"; print verdana(); print "$info[4]"; print "</td>"; print "<td width=120>"; print verdana(); print "$info[5]"; print "</td>"; print "<td width=40>"; print verdana(); print "<center>$info[6]</center>"; print "</td>"; print "</tr>"; endwhile; i chce by poszczegolne tr wyswietlaly mi sie naprzemiennie w kolorach black red (obojetne!), jest mozliwosc zrobienia tego w samym php, czy potrzebny sql?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ? jak zmodyfikowac kod?? nie prosze byscie sami to zrobili ale dali jakies konstruktywne wskazowki (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 87 Pomógł: 1 Dołączył: 22.04.2002 Skąd: Szubin Ostrzeżenie: (0%) ![]() ![]() |
Tak dla porównania:
Kod $kolor1="dddddd";
$kolor2="ddddff"; if ($kolor==$kolor1) { $kolor=$kolor2; } else { $kolor=$kolor1; } print("<TR><TD bgcolor="$kolor" ></TD>n"); Do oceny. Napiszcie co o tym sądzicie (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Pozdrawiam LeWaR |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 12:57 |