Skip to content

Instantly share code, notes, and snippets.


Moc/retrieve Secret

Created Feb 4, 2021
What would you like to do?
if($result = $sql->retrieve('games_reviews', '*', 'ID={$reviewID}'))
//$result is now an array of database results. You can display the results array using
// You can now loop through each result, like so:
foreach($results as $result)
// Say there is a column called 'name'. You can retrieve the value with:
echo $result['name'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment