in reply to Re: Perl: info from database into a form(HTML)
in thread Perl: info from database into a form(HTML)
I have the HTML button and the SQL statmenet ready but dont know where to go from here?
**HTML:** print " <div style=\"z-index:86;\" class=\"group-shell\">"; print " <table>\n"; print " <tr><td><input class=\"dial-red-button\" id=\"importFrom +CAD\" type=\"submit\" value=\"Import Info\"></td></tr>\n";
**javascript-jquery**
<script type="text/javascript">
\$(document).ready(function() {
\$('#importFromCAD').click(function () {
\$('#importNav').val('');
return true;
**Perl SQL statement:**
$sql_statement20 = "select * FROM CT_AL_CAD_ID where CAD='$CAD' ORDER BY KeyField DESC";
$sth20 = $dbh->prepare($sql_statement20);
$sth20->execute();
$sth20->bind_columns(undef, \$ID_data[0], \$ID_data1, \$ID_data2, \$ID_data3, \$ID_data4, \$ID_data5, \$ID_data6, \$ID_data7, \$ID_data8, \$ID_data9, \$ID_data10, \$ID_data11, \$ID_data12);
$sth20->fetch();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl: info from database into a form(HTML)
by alen129 (Novice) on Jul 29, 2016 at 21:30 UTC | |
by Corion (Patriarch) on Jul 30, 2016 at 06:10 UTC |