Thx for looking!
jg
$sth = $dbh-> prepare("UPDATE $calendar_table SET year = ?, month = ?, day = ?, time_start = ?, time_end = ?, title = ?, location = ?, description = ?, category = ?, posted_by = ?, post_date = ?, b_time = ?, e_time = ?, WHERE year = ?, AND month = ?, AND day = ?, AND time_start = ?, AND time_end = ?, AND title = ?, "); $sth->bind_param(1, "$form_data{'year'}"); $sth->bind_param(2, "$form_data{'month'}"); $sth->bind_param(3, "$form_data{'day'}"); $sth->bind_param(4, "@start_time"); $sth->bind_param(5, "@end_time"); $sth->bind_param(6, "$form_data{'title'}"); $sth->bind_param(7, "$form_data{'location'}"); $sth->bind_param(8, "$form_data{'description'}"); $sth->bind_param(9, "$form_data{'category'}"); $sth->bind_param(10, "$form_data{'posted_by'}"); $sth->bind_param(11, "$form_data{'post_date'}"); $sth->bind_param(12, "$b_time"); $sth->bind_param(13, "$e_time"); $sth->bind_param(14, "$form_data{'old_year'}"); $sth->bind_param(15, "$form_data{'old_month'}"); $sth->bind_param(16, "$form_data{'old_day'}"); $sth->bind_param(17, "$form_data{'old_start_time'}"); $sth->bind_param(18, "$form_data{'old_end_time'}"); $sth->bind_param(19, "$form_data{'old_title'}"); $sth->execute();
_____________________________________________________
Think a race on a horse on a ball with a fish! TG

In reply to Current version of code used to produce trace() results above in thread by jerrygarciuh
in thread DBI SQL Syntax Problem by jerrygarciuh

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.