mysql and Perl Can someone tell me what's wrong with this code:
$sth=$dbh->prepare("SELECT Contacts FROM Info WHERE Name=?); $sth->execute("%$sname%"); $dname = $sth->fetchrow_array; $names is supposed to be a substring. So if I want to search for a middle name or just a first name or even a last name. Any help is greately appreciated. Daniel. --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php