<table>

<tr><td>Date</td><td>Job_id</td><td>Active</td>/tr>
<?php

while ($row = mysqli_fetch_assoc($rs_total)) {

?>

<tr>

<td><? echo $row["Date"]; ?></td>

<td> <?php echo "<a href='work.php?ID=".$row."'>".$row."</a>"; ?></td>


<td><? if($row["Active"]==0) echo "Active"; else if ($row["Active"]==2) echo "Completed"; else echo "Not active"; ?></td>

</tr>
<?php
};
?>
</table>


in this code i want to transfer the id on pop up window and get display all detail about that id. please tell me how to do that.`

here when you need the popup? onclick of the job_id?

here when you need the popup? onclick of the job_id?

yes karthik. at the time of press on job id.

try this

<td> <?php echo "<a href='#' onclick=window.open('work.php?ID=".$row['Job_id']."','mywindow','menubar=1,resizable=1,width=350,height=250')>".$row['Job_id']."</a>"; ?></td>

use [code] tags to post your codes

try this
<td> <?php echo "<a href='#' onclick=window.open('work.php?ID=".$row['Job_id']."','mywindow','menubar=1,resizable=1,width=350,height=250')>".$row['Job_id']."</a>"; ?></td>

use [code] tags to post your codes

Thank you very much kartik.

Mark this thread as solved if your problem solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.