CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [Iconx] CGI::Application and MySQL: Edit Log



FishMonger
Veteran / Moderator

Mar 11, 2015, 12:58 PM


Views: 10457
Re: [Iconx] CGI::Application and MySQL


Code
my $sql;  
if ($search_type eq 'Title'){
$sql = "SELECT * FROM dvd WHERE Title Like ? and Format=?";
}

my $sth = $dbh->prepare($sql);
$sth->execute('%value%', 'my_format');



(This post was edited by FishMonger on Mar 11, 2015, 12:59 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Mar 11, 2015, 12:59 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives