hi, i'm having problems including placeholder into my SELECT query.. basically i need to use a regular expression in the middle of which i'd like to put a placeholder.. for example:
$sql = "SELECT a FROM table WHERE b ~* '.{2,4}?' ";
$sth = $dbh->prepare($sql);
$sth->execute($placeholder);
obviously single quotes around placeholder will make execute to fail.. i've already spent some time trying to sort it out but no luck :( ... thanks for any info