Re: Only showing 20 lines per page...
- From: "Mike" <mike@xxxxxxxxxxxxxxxxxxxxx>
- Date: 16 Jul 2006 12:14:57 -0700
Thanks Rik. Thats been a big help.
So in my example I could just do this..
$conn = //db connection stuff
$sql = "select VALUES from TABLE LIMIT X,X";
$sql1 = "mysql_query($sql,$conn) or die(mysql_error());
while ($results = mysql_fetch_array($sql1)) {
echo $results['value1'];
echo $results['value2'];
}
...and if the LIMIT was set to 0,20 I would see 20 sets of both value1
and value2.
Many Thanks
Mike
.
- References:
- Only showing 20 lines per page...
- From: Mike
- Re: Only showing 20 lines per page...
- From: Rik
- Re: Only showing 20 lines per page...
- From: Mike
- Re: Only showing 20 lines per page...
- From: Mike
- Re: Only showing 20 lines per page...
- From: Rik
- Only showing 20 lines per page...
- Prev by Date: Re: Only showing 20 lines per page...
- Next by Date: Re: Best practice regarding MySQL username/pw in script file??
- Previous by thread: Re: Only showing 20 lines per page...
- Index(es):
Relevant Pages
|