I understand how to create a variable on a page and display it. The following sets the variable to 1:
Code: Select all
<?php
$current_game = 1;
?>Code: Select all
<p>Current game: <?php echo $current_game ?></p>Code: Select all
<?php
$dcurrent_game = $row_Current_game['current_game'];
?>Can some help me understand what I need to do please to bring in a piece of data from the database, set this is the variable and then display this (or use it in an if statement, but I'll come on to that) within the page.
Many thanks,
Darren