Quote:
|
Originally Posted by xtremenw
I have read through this a couple of times and do not understand what you are trying to do. In your while statement, $row_title gets reset on each row that is returned from SQL. But only the last row is used. Also, you are trying to do a 'find and replace' when you are using eregi which is a search only function... Please give more detail and maybe some example data from your database and that might help, me at least, understand what you are trying to do.
|
`
What i try to do is grab data and list some document
display from $start to $end
or display from <!---START HERE --> to <!---END--->
#######
// example of data in mysqld from ID 1 - ID 3
ID = 1
Title =
Hello HOTSCRIPTS.COM
Programming talk
<!---START HERE -->
vb forums
xxxxxxx
yyyyyy
Last line
ID =2
Title =
first line of id=2
xxxxxxxxxxxxxxx
xxxxxxxxxxx
xxxxxxxxyyyyydsdfsdfs
ID =3
Title =
first line of ID=3
sdfsdfsdfsdf
sdfsdfsdfsdfsd
<!---END--->
sdfsdfsdfsdfs
xxxxxxxxxxxxxxxx
dfdfdfdfdfdfd english usa
33xczxczxsadfdf
*********************
from above I want to display some data from ID 1-3
display start from $start to $end
and I use eregi
code I use for this
result I will have is it will display from $ start to $end
vb forums
xxxxxxx
yyyyyy
Last line
ID =2
Title =
first line of id=2
xxxxxxxxxxxxxxx
xxxxxxxxxxx
xxxxxxxxyyyyydsdfsdfs
ID =3
Title =
first line of ID=3
sdfsdfsdfsdf
sdfsdfsdfsdfsd
-------------
but if ID 1-ID3 has many content on it
the result will start $start but will not stop at $end
or some time didn't display anything or sometime display all content