how to get popup window if new row inserted into mysql database for a particular table...

That to be display inserted values in popup window...


Advance thanx...

Recommended Answers

All 2 Replies

say you have one.php where you will do the insert

one.php

<?php
.
.
.
$insert_query = "insert into table1 (col1,col2) values ('val1','val2')";
mysql_query($insert_query);

// Now get the of the above inserted row to some variable say $id

echo "<script type='text/javascript'>window.open('http://www.abc.com/test/two.php?id=".$id."');</script>";


?>

Your two.php should have the code to retrive the data from the database and display the required details using the 'id'.

I'm using js file for display of data from database. but due to use of js when i add any new entry it is not entered in database. can anybody help me

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.