Skip to content

Instantly share code, notes, and snippets.

@Moc

Moc/retrieve Secret

Created Feb 4, 2021
Embed
What would you like to do?
<?php
if($result = $sql->retrieve('games_reviews', '*', 'ID={$reviewID}'))
{
//$result is now an array of database results. You can display the results array using
print_a($results);
// 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