Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 859555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:41:44+00:00 2026-05-15T08:41:44+00:00

I have this PHP code : $query = SELECT * FROM news WHERE news_active

  • 0

I have this PHP code :

    $query = "SELECT * FROM news WHERE news_active = 1 AND news_type = 1 ORDER BY id DESC";

     $q2 = "SELECT * FROM st_photos WHERE id = 4 LIMIT 1";
     $r2 = mysql_query($q2);
     $row22 = mysql_fetch_array($r2);

$news_set = mysql_query($query);
$news_set2 = mysql_query($query);
if (mysql_num_rows($news_set) != 0) {

    $r = mysql_fetch_array($news_set);

                                echo "<div id=\"d_coll\">
    <div id=\"top_text\">$row22[img]</div>
               <div id=\"d_image\"><img id=\"larg_p2\" src=\"photos/$r[news_image]\" width=\"320\" height=\"250\" border=\"0\"></div>
               <div style=\"width:300px\"><div id=\"n_text2\">$r[news_part_en]</div>
    </div>
     </div>";
                                }

    if (mysql_num_rows($news_set2) != 0) {

    while ($news = mysql_fetch_array($news_set2)) {

                  echo "<div id=\"n_col\">
                                <div id=\"n_tittle\"><a href=\"view_news_en.php?id=$news[id]\">$news[news_tittle_en]</a>&nbsp;&nbsp;<img src=\"images/bu3.png\" border=\"0\" align=\"middle\"></div>
                                <div id=\"im\"><img onMouseOver=\"MM_swapImage('larg_p2','','photos/$news[news_image]','imgs[$news[id]]','','photos/$news[news_image]',1);up2('$news[news_part_en]')\" onMouseOut=\"MM_swapImgRestore()\" name=\"imgs[$news[id]]\" id=\"imgs[$news[id]]\" src=\"photos/$news[news_image]\" width=\"50\" height=\"50\"></div>
                                <div dir=\"ltr\" id=\"n_div\">$news[news_part_en]&nbsp;&nbsp;&nbsp;<div class=\"mo\"><a href=\"view_news_en.php?id=$news[id]\">MORE</a></div></div>
                              </div>";

                                    }

                                    echo "<div align=\"right\" class=\"arr\"><img src=\"images/prev.png\">&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"images/next.png\"></div>";

                                }

There are 2 images at the end of the code (prev & next), I want to use them to do pagination but I don’t want to view any numbers, only these 2 images.

How I can do that?

I think we can do that by using JQuery library, but I don’t know how to use it.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:41:45+00:00Added an answer on May 15, 2026 at 8:41 am

    you can use one of many plugins, for example here .

    you must just remoove thе numbers. you can, i believe;)

    or you can write the script by yourself.
    i’ll give you only an idea. let’s assume you have 30 rows( from DB).put them into <div> tags, and increase the id of div. the display proparty of first <div> you must set to ”, and all others to none. and then, onclick on your buttons, you just change display proparty of div elements…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 540k
  • Answers 540k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer MIPS has explicit pipeline hazards; the instruction immediately following a… May 17, 2026 at 2:40 am
  • Editorial Team
    Editorial Team added an answer If you're not willing to use those higher-level APIs, you… May 17, 2026 at 2:40 am
  • Editorial Team
    Editorial Team added an answer Nick Craver had it right when he suggested the negative… May 17, 2026 at 2:40 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have this php query $sql = SELECT * FROM db; $query = mysql_query($sql);
I have this php code $jsonArray = array(); $sql = SELECT ID,CLIENT FROM PLD_SERVERS;
I have this PHP code that I use to make a dropdown form selection
I have this php code, with which I am trying to generate a popup
Okay. I have this code on my site: <?php session_start(); include database.php; include bruger.php;
I am looking for a cleaner way to do this. My code works, but
OK - I'll get straight to the point - here's the PHP code in
I use a form where i have listed the data from database like title,
I have this friend request page, and i want my div echo <div style='
Does anyone have a PHP function that for example if a mysql_error() happens due

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.