Last active
December 18, 2018 14:18
-
-
Save dkarandana/e7d4725412f9f0d5b9ebcae5a7e785f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************** | |
Hold Multiple Records as an Array[] | |
******************************************* | |
while ($movie = $results->fetch_assoc()) { | |
$classes = ( ++$row % 2 == 0 ) ? 'even' : 'odd'; | |
$movieRecords .= <<<TABLE | |
<tr class="{$classes}"> | |
<td><img src="{$movie['thumbnail']}" alt="{$movie['name']}"</td> | |
<td>{$movie['name']}</td> | |
<td>{$movie['intro']}</td> | |
<td>{$movie['votes']}</td> | |
<td>{$movie['ratings']}</td> | |
</tr> | |
TABLE; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment