I am not shure if the missing : is the problem because I get a syntax error when I leave it out. Here is the mysql code that does the job for me
$dsn = "DBI:$db_driver:database=$db_database;host=$db_hostname;port=$d +b_port"; $dbh = DBI->connect($dsn, $db_user, $db_password) || die "cannot conne +ct: " . $DBI::errstr; $sth = $dbh->prepare(qq` insert into solid_gear (product_name, product_publisher, product_price, product_url, product_ +picture_name, url1, url2, url3, url4, name1, name2, name3, name4, pro +duct_review, date, author_id) values ('$product_name','$product_publisher','$product_price','$product_url', +'$product_picture_name','$url1','$url2','$url3','$url4','$name1','$na +me2','$name3','$name4','$product_review','$date','$author_id') `) || die "Cannot prepare: " . $dbh->errstr(); $sth->execute() || die "Cannot execute: " . $sth->errstr(); $sth->finish(); $dbh->disconnect;
I hope this is any help (just a quick cut and paste)

Imagination is more important then knowledge -Einstein-


In reply to Re: DBD::mysql barfs by olly
in thread DBD::mysql barfs by scottstef

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.