in reply to Mysql select and store one field
Uses placeholders to prevent SQL injection but I would still validate the $url if it's comming from outside the script.my ($post) = $dbh->selectrow_array("SELECT post FROM tablename WHERE u +rl=?", {}, $url);
|
|---|