0

<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.`

2
Contributors
6
Replies
9
Views
5 Years
Discussion Span
Last Post by newbie1234
0

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

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

2

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

Edited by Dani: Fixed formatting

0

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.

Edited by Dani: Fixed formatting

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.