Re: ARRRRGGGGHHHH! Weird Problems!

From: Date: Thu, 01 Aug 2002 19:10:27 +0000
Subject: Re: ARRRRGGGGHHHH! Weird Problems!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-110729@lists.php.net to get a copy of this message
OK, the color works, but now I have 2 empty lines!!!!!!!!!!!!!!!!!!!! "Tony Harrison" <tonyh21@tharrison21.fsnet.co.uk> wrote in message news:20020801170900.62874.qmail@pb1.pair.com... > Thanx, I havent tried the loop yet, but the color will work im sure . > > "Aaron Ott" <aaron_ott@hotmail.com> wrote in message > news:20020801032331.86011.qmail@pb1.pair.com... > > tony, > > > > regarding problem one, it looks like there is a problem in the code near: > > for ($g = 0; $g < $num_lyrics; $g ++) { > > > > try doing: > > for ($g = 0; $g <= $num_lyrics; $g ++) { > > > > As for problem two, it looks like you have your color variable set in the > > for loop thereby resetting the color variable to 1 with each pass: > > for ($g = 0; $g < $num_lyrics; $g ++) { > > $color = 1; > > if ($color == 1) { $rowcolor = "#DFDFDF"; $color ++; } else { $rowcolor= > > "#FFFFFF"; $color --; } > > ... > > } > > > > > > "Tony Harrison" <tonyh21@tharrison21.fsnet.co.uk> wrote in message > > news:20020731181502.56031.qmail@pb1.pair.com... > > > OK, im having some minor problems with my site. > > > In artist.php (http://members.lycos.co.uk/ajohnh/artist.php - Source at: > > > http://members.lycos.co.uk/ajohnh/source/artist.txt) > > > If for example you > > view > > > lyrics by Weird Al Yankovic > > > (http://members.lycos.co.uk/ajohnh/artist.php?id=1) You'll see that the > > > bottom lyric (The Sage Begins) does not display. Now when you sort them > by > > > views (http://members.lycos.co.uk/ajohnh/artist.php?id=1&sortby=views) > you > > > will see that err, The Sage Begins is there, and the other one can no > > longer > > > be seen. PLease examine my source and tell me whats wrong. And another > > thing > > > about that page. The rows are meant to be alternating between #DFDFDF > > (grey) > > > and #FFFFFF (white) - why the hell are they all grey?!?!?!!? It worked > > fine > > > in index.php - source at > > http://members.lycos.co.uk/ajohnh/source/index.txt > > > > > > > > > Please help !!!!!! > > > > > > > > > > > >

« previous php.general (#110729) next »