Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
new-turn [2018-03-02 14:52] Joakim Forsgren |
new-turn [2018-03-23 10:41] Joakim Forsgren |
||
---|---|---|---|
Line 19: | Line 19: | ||
2. Slumpla fram 3 nya frågor och lägg till dessa till $game_questions | 2. Slumpla fram 3 nya frågor och lägg till dessa till $game_questions | ||
<code php> | <code php> | ||
+ | // Struktur på $game_questions. | ||
+ | |||
+ | $game_questions = [ | ||
+ | 0 => 31, | ||
+ | 1 => 17, | ||
+ | 2 => 8, | ||
+ | ]; | ||
+ | |||
+ | |||
while ($row = mysqli_fetch_assoc($result)) { | while ($row = mysqli_fetch_assoc($result)) { | ||
$game_questions[] = $row[' | $game_questions[] = $row[' |