how can I check data has been inserted successfully

Posted by Piyush on Stack Overflow See other posts from Stack Overflow or by Piyush
Published on 2010-05-18T10:45:13Z Indexed on 2010/05/18 11:10 UTC
Read the original article Hit count: 121

Filed under:
|

I have two insert statements.Second one will be executed only after successful execution of First one.What I wd like to do is-

$sqlone="Insert into ....."; $sqltwo="Insert into.....";

If(mysql_query($sqlone))
{
If(mysql_query($sqltwo))
{
show message Data inserted in both tables.
}
}

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql