I want to pull title and price of an item from my database and turn them into variables - $title and $price so that I can use them elsewhere in the code.
Here is my statement so far:
$sth = $dbh->prepare("SELECT title, price FROM book WHERE b_id=$book");
$sth->execute();
Can anyone tell me how to do this?