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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:22:23+00:00 2026-05-27T09:22:23+00:00

<head> <link type=’text/css’ href=’css/osx.css’ rel=’stylesheet’ media=’screen’ /> <script type=’text/javascript’ src=’js/jquery.js’></script> <script type=’text/javascript’ src=’js/jquery.js’></script> <script

  • 0
<head>
<link type='text/css' href='css/osx.css' rel='stylesheet' media='screen' />
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/jquery.simplemodal.js'></script>
<script type='text/javascript' src='js/osx.js'></script>
</head>
<?php
$myuser = 3;
$a = mysql_query('SELECT cmc.coursemoduleid, cma.sourcecmid, cmc.userid 
                  FROM course_modules_completion, course_modules_availability cma 
                  WHERE cmc.userid = '.$myuser.'');
echo '<table>
        <tr><th>Course Module ID</th><
            <th>Course Module ID</th>
        </tr>';

foreach($a as $aa)
{
  $mid = $aa->coursemoduleid;
  $sid = $aa->sourcecmid; 
  $user = $aa->userid; 
  <tr><td>'.$user.'</td>
      <td>'.$mid.'</td>
      <td>'.$sid.'</td> 
      <td>
        <div id="container">
      <div id="content"><div id="osx-modal"><a href="#" class="osx">View More</a>
           </div></div> 
          <div id="osx-modal-content">          
    <div class="close"><a href="#" class="simplemodal-close">X</a></div>
    <div id="osx-modal-data">';
               echo $user.'Welcome Here';
            </div></div>
      </td>
  </tr>';
}
echo '</table>';
?>

I want to get $user value in popup (If suppose If the $myuser is 6 in a table then even i should get 6 inside the popup when I click viewmore). My popup was working exactly no errors in jquery just I need to pass $user value inside popup.

Right now, it displays only the first userid 9 in all popups.
Could anyone suggest me?

  • 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-27T09:22:24+00:00Added an answer on May 27, 2026 at 9:22 am

    You need to give the user id to the popup.

    <script type='text/javascript'>
      function showUser(userID)
      {
        var userWindow = window.open(url, "User", "width=600,height=400");
      }
    </script>
    
    <a href="#" class="osx" onclick="showUser(<?= $user ?>)">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<?php include('db_connect.php'); ?><head> <link rel=stylesheet type=text/css href=comment-style.css media=screen /> <script type=text/javascript src=../jquery.tablesorter/jquery-latest.js></script> <script type=text/javascript
I have a html like this: <html> <head> <link rel=stylesheet type=text/css media=all href=style.css> </head>
How can I do this? <head runat=server> <title></title> <link rel=stylesheet href=default.css type=text/css> <asp:ContentPlaceHolder ID=head
I have a list like this: <html> <head> <link type=text/css rel=stylesheet href=testli.css> </head> <body>
<head runat=server> <title><asp:ContentPlaceHolder ID=TitleContent runat=server /></title> <link href=../../Content/css/layout.css rel=stylesheet type=text/css /> <script type=text/javascript src=/Areas/CMS/Content/js/jquery-1.3.2.min.js></script>
I have the following file: <html> <head> <title></title> <link rel=css type=text/css href=/empty.css title=css />
Consider the following markup: <!DOCTYPE html> <html> <head> <title>Test Page</title> <link href=screen.css rel=stylesheet />
Here is the html: <html> <head> <meta http-equiv=Content-Type content=text/html; charset=UTF-8/> <link rel=stylesheet type=text/css href=styles.css/>
<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Remote Control</title> </head> <link rel=stylesheet href=/../.. type=text/css
I have the following file file: <html> <head> <title></title> <script type=text/javascript src=/Prototype.js></script> <script type=text/javascript>

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.