spewn
Programmer
- May 7, 2001
- 1,034
i'm trying to store info in a database. i'm running perl and the script executes fine, no problems.
the issue i'm having is the info is not being stored in the database i've created, but no errors show.
i'm using go daddy hosting, (first time), and am not too familiar with it.
everyting except my password is exactly how it appears.
is there a simple way to test the connection?
thanks for any help.
- g
the issue i'm having is the info is not being stored in the database i've created, but no errors show.
i'm using go daddy hosting, (first time), and am not too familiar with it.
Code:
$drh = DBI->install_driver("mysql");
$dsn ="DBI:mysql:database=top_clients;host=h71mysql17.secureserver.net";
$dbh = DBI->connect($dsn,"top_clients","myPass") or die "no db!";
$sth = $dbh->prepare("INSERT INTO my-clients VALUES(0,'$uname','$newPhone','$uemail','$usubject','$umessage','$ustatus','$theFullTimeIs','$theDateIs','$uip')");
$sth->execute;
everyting except my password is exactly how it appears.
is there a simple way to test the connection?
thanks for any help.
- g