Re: [PHP] Only 5 lines (now with the right script :/ )

2001-03-22 Thread Dennis Haller
Still doesnt work, I think the problem is that the $content exist out of 1 array. So u cant limit it like in a SELECT query. The script sees the content of that array as 1 and therefor can not be splitted. THx for ure afford "Jack Sasportas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED

Re: [PHP] Only 5 lines (now with the right script :/ )

2001-03-22 Thread Jack Sasportas
I'm guessing you are getting an extra blank If you get a result back in $headlines = sizeof($content) of 5, then you have 5 lines, but in your script you have the value of $i as ZERO ($i = 0; $i < $headlines; $i++) meaning 0,1,2,3,4,5 which is 6 lines, simply set your $i=1 and it should be co

Re: [PHP] Only 5 lines

2001-03-22 Thread Dennis Haller
Thx Michael, but as u can see I already posted a new msg cause I copy pasted the wrong script :) THx for ure reply - Original Message - From: ""Michael Bartlett"" <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Thursday, March 22, 2001 1:52 PM Subject: Re:

Re: [PHP] Only 5 lines

2001-03-22 Thread Michael Bartlett
if this message duplicates - sorry. some weirdness on my news client! dennis, i think your limit should read 0,4 because 0 is actually row 1 (we count from 0 not 1) so limit 0,4 gives you rows 0,1,2,3,4 - which is 5! not 4! ""Dennis Haller"" <[EMAIL PROTECTED]> wrote in message 99cs5b$bj4$[EMAI

Re: [PHP] Only 5 lines

2001-03-22 Thread Michael Bartlett
surely it should be limit 0,4 (0,1,2,3,4) = 5 items! remember 0 is row 1 not 1 ""Dennis Haller"" <[EMAIL PROTECTED]> wrote in message 99cs5b$bj4$[EMAIL PROTECTED]">news:99cs5b$bj4$[EMAIL PROTECTED]... > Hi all, im using the following scripts: > > include("connect.php"); > > $query = "SELECT thre