Hi,

I insert data into database with submit button. When insert is successful, a message box appears on the screen which is shown below. Now, user must click on "Ok" on that message to be able to continue. Is this effect concurrency in MySQL database because, several people use this page. Shall i just use echo to print same message on the page instead?

Thanks

<script>alert("Data inserted");</script>

i have one idea...plzzzz implement according to your requirement...

plase call this function after your insert query has done....

echo "<SCRIPT LANGUAGE="javascript"><!--n";
echo " if(confirm("You have successfully inserted... "))";
echo "{";
echo "d.action='nextpage.php';
echo "d.submit()";
echo "// --></SCRIPT>n";

or simply use:

echo "<SCRIPT LANGUAGE="javascript"><!--n";
echo " alert ("message");n";
echo "// --></SCRIPT>n";
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.