Message

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • upscope

    #1

    Message

    I am just learning mysql and I'm trying to write a cgi to update the
    database from a form. Also just learning Perl. I have the following script
    started that is called by an HTML form. I get the follwing message when I
    execute it. Where can I find the message descriptions.

    DBI::st=HASH(0x 1b31f28)

    this is my script so far:
    #!c:\perl\bin\p erl

    use DBI();
    print "Content-type:text/html\n\n";

    #Connect to database members.

    $database = "members";
    $table = "members";

    $dbh = DBI->connect("DBI:m ysql:$database" )or
    dienice("Can't connect:$DBI::e rrstr");

    $sth = $dbh->prepare("selec t
    membername,addr ess,city,state, zipcode,phonenu mber from members")or
    dienice("Can't prepare statement: ",$dbh->errstr);

    print $sth;

    exit;

    upscope



    --
    MySQL General Mailing List
    For list archives: http://lists.mysql.com/mysql
    To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw

Working...