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 666193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:47:30+00:00 2026-05-13T23:47:30+00:00

$.post(/diabetes/ropimages/getcount.php,{pid:$(#patient_id).val()} ,function(data1){ //alert(data1); var count = data1; var pid = $(#patient_id).val(); var rid; for(

  • 0
$.post("/diabetes/ropimages/getcount.php",{pid:$("#patient_id").val()} ,function(data1){
  //alert(data1);
  var count = data1;
  var pid = $("#patient_id").val();
  var rid;

  for( var i = 1 ; i <= count ; i++) {
    var link ='<img src="/diabetes/ropimages/thumbpicdisplay.php?pid=+pid+&rid=1" />';
    $("#content1").empty().html(link);
  }
});

I am trying to pass pid value in url ..but its taking directly as +pid+ as value ..how do i give it the value of pid.

And how do i print 3 images in a div? like the one in code

  • 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-13T23:47:30+00:00Added an answer on May 13, 2026 at 11:47 pm

    You simply need to terminate the string after ?pid= and then use the concatenation operator (+) to “insert” the pid variable in the appropriate location:

    '<img src="/diabetes/ropimages/thumbpicdisplay.php?pid=' + pid + '&rid=1" />'
    

    As for attaching the 3 images to the div, you might have more luck doing the following:

    var link = '';
    
    for(var i = 1; i <= count; i++) {
       link += '<img src="...thumbpicdisplay.php?pid=' + pid + '&rid=1" />';
    }
    
    $("#content1").empty().html(link);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$.post('service.php?getPhotos', function(data){ var photoIds = []; $.each(data, function(){ photoIds.push(this.id); }); console.log(_photoId); //7962669392 console.log(photoIds); //[7980686507,
post.php?replyto=username&othervariable=value For example, if I click a link with this url, then I want
$.post('ajax_ceneizbaze.php', function(cenovnik){ if(cenovnik){ cenastr=cenovnik.cenastrana; cenadinamika=cenovnik.cenadinamika; cenabaza=cenovnik.cenabaza; cenakorpa = cenovnik.cenakorpa; cenacms = cenovnik.cenacms; inkrementodrzavanje =
first post here as I'm stuck with my wonderful C++ function. The error I'm
This post shows how to axiomatise a length function for Z3's built-in lists. However,
This post from F# News states that F# can inline a function passed as
Post your shortest code, by character count, to check if a player has won,
Post :belongs_to :user User :has_many :posts In my signup workflow they draft a Post
POST requests to server work fine until a file is attached. The form is
POST /api/crmteetimeapi.asmx/Login HTTP/1.1 Host: golffacility.com Content-Type: application/x-www-form-urlencoded Content-Length: length OwnerID=string&UserID=string&Password=string What language do I

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.