Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql conformation

Status
Not open for further replies.

tonyjob

Programmer
Nov 20, 2000
25
GB
is there a way to get a conformation from mysql after you insert something into it. so that you know if it was or wasnt succesful.
 
$mysqlhandle->do("INSERT $mysqldbname.$currentTable SET $insertStmt\n");

print "Error!!!" if $DBI::err ;
As always, I hope that helped!

Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
so this is the part that gets the error?

print "Error!!!" if $DBI::err
 
I thought it was $DBI::errstr you wanted....

Can you use something like this?

$mysqlhandle->do("INSERT $mysqldbname.$currentTable SET $insertStmt\n") or die "INSERT statement problem\n$DBI::errstr\n";
Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top