IT Community - Software Programming, Web Development and Technical Support

Displaying results across pages

This is a discussion on Displaying results across pages within the PHP Programming forums, part of the Web Development category; I've bought a script for my shop, but it list's the first page and then nothing else. I ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 05-23-2009, 11:32 PM
buddhi225 buddhi225 is offline
D-Web Trainee
 
Join Date: May 2009
Posts: 3
buddhi225 is on a distinguished road
Default Displaying results across pages

I've bought a script for my shop, but it list's the first page and then nothing else. I can't find out how to see the rest of the results on other pages. At the moment the code is:

PHP Code:
<?
$datecheck
=date("Y-m-d H:i:s");
$feature_sql="select * from shop where  picture1!='' and (expire_date > '$datecheck') order by expire_date limit 0, 10";
    
$feature_res=mysql_query($feature_sql);
    
$tot_count=mysql_num_rows($feature_res);
    
$count=0;
    if(
$tot_count 0)
    {
     
?>
at the top of the page. Then just before the results are displayed is:

PHP Code:
<?
$l
=1;
        while(
$feature_row=mysql_fetch_array($feature_res))
    {
    
$string_1=$feature_row[product_descrip];
$i=$feature_row['id'];
    
?>
<? 
if(($l==1)||($l==3))
{
echo 
"<tr>";
}
?>
and finally at the bottom is:

PHP Code:
<?
$l
++;

 if((
$l==1)||($l==3))
{
echo 
"<tr>";
$l=1;
}
$allpro2 $feature_row['id'];


$allpro1 "$allpro2";

if(
$allpro!=""){
$allpro "$allpro1|$allpro";
}
if(
$allpro==""){
$allpro "$allpro1";
}
?>
<?
}
$allpro3 "$allpro";
    
?>
    <?
    
}
    
?>
I'm very new to php so don't even know if the code to have multiple pages is there already. At the bottom of the page I want to display a series of numbers so that people can go to which ever page they want and I want those numbers to be controlled dynamically so I don't need to create multiple pages for each of the shops categories.

Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tag for displaying text as-is Decoy F 13 The Lounge 0 06-13-2009 08:42 PM
Dynamically Creating Web Pages(aspx Pages) in asp.net 2.0 shaalini Server Management 0 05-11-2009 03:44 AM
Displaying information based on date kenrojas1 PHP Programming 0 12-30-2008 07:57 AM
Merging two Data Tables and displaying in DataGrid S.Vinothkumar VB.NET Programming 8 03-27-2008 01:37 AM
Displaying Progress bar abhilashdas Flash Actionscript Programming 5 12-24-2007 03:19 AM


All times are GMT -7. The time now is 06:03 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0