PHP Scripts Development » PHP snippets and scripts forum

Pagination PHP script

(4 posts)

Tags:

Great offers not only for geeks!


  1. User has not uploaded an avatar

    julius1984
    Member

    Hi I'm a newbie in php...

    is there anybody could help me to create pagination php script...

    here is my display code.

    $query = mysql_query("SELECT * FROM cust_qa_table WHERE status = '{$qastat}' ORDER BY ques_date");
    
    $f=0;
    
    while($row=mysql_fetch_array($query))
       {
       $query2 = mysql_query("SELECT * FROM cust_table WHERE username = '{$row[username]}'");
    
         echo $row['name'];
    
    			$f=1;
    			}
    
    			if($f==0)
    				{
    				echo "<font color='red'><br><br>No members currently ask question.</font><br><br>";
    				}
    Posted 6 months ago #
  2. Hello, do you tried this snippet or this class?

    Posted 6 months ago #
  3. User has not uploaded an avatar

    julius1984
    Member

    I already downloaded class but I got headache when reading the code... I think I choice snippet... in my code above... can you teach me where should I insert my code?

    thank you OLaf

    Posted 6 months ago #
  4. you could start with my snippet while using your sql

    check the php manual about the mysql functions, this will help ;)

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.