how to do pop up menu to show detail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leesyaa
    New Member
    • Jan 2014
    • 20

    how to do pop up menu to show detail

    I have quarried data form DB (mysql) depend on user input and viewed that on a table. originally there is 12 column on my table, but I made only 7 that shows up on the table.

    I what that when i click the ID(made it as button/link) it should show a pop up menu/form with full details of that particular row contact.

    Code:
    <tr>
    		<td><center><input type="button" value="<?php echo $row["id"];?>" onClick="detail()"></center></td>
    		<td><?php echo $row['name']?></td>
    		<td><?php echo $row['unit']?></td>
    		<td><?php echo $row['telefon']?></td>
    		<td><?php echo $row['faks']?></td>
    		<td><?php echo $row['email']?></td>
    		<td><?php echo $row['data']?></td>
    		<td><?php echo $row['purpose']?></td>
    </tr>
    the problem is, how can I view the details of each row?

    also the popup doesn't work. I'm very bad at javascript(oh wait, I didn't even have the code.) and php+sql connection,

    please help me, thank you!
  • hemal8888
    New Member
    • Mar 2013
    • 9

    #2
    i have given idea for that,

    You can use ajax for that pass value row on click in ajax and get in success and apply
    Code:
    window.open("URL WHEN GET VALUE","_blank","toolbar=yes, scrollbars=yes, resizable=yes, width=500px,height=250px");

    Comment

    Working...