Is there a shorthand for prepared statements?
问题 Recently I've started to use prepared statements. However, I feel like my code becomes a bit too cluttered with all the temporary variables and extra lines required just to make a single query. So far my code looks like the following: $stmt = $conn->prepare("SELECT * FROM locations WHERE location_id = ?"); $stmt->bind_param("i", $_GET['location_id']); $stmt->execute(); $stmt->store_result(); $stmt->bind_result($location_id, $owner); //all the other $stmt->fetch() related code here... Are