Hello, im trying to show game titles texts when you put the mouse pointer over the game images.
I have tried to add div class css to the code on bottom of this php script but am having no luck.
Would anyone know how to add a mouse over statement to this code? I am running php5.6 on my server so this code is older but works fine.
`<?php
// The following code is for a box of random games
echo '<div class="">';
$query = yasDB_select("SELECT * FROM games order by rand() limit 12");
while($games = $query->fetch_array(MYSQLI_ASSOC)) {
$gameurl = $games['title'];
$gameurl = str_replace(" ", "-", $gameurl);
$gameurl = str_replace("'", "", $gameurl);
$gameurl = str_replace('"', "", $gameurl);
$gameurl = str_replace('/', "", $gameurl);
$gameurl = str_replace("\", "", $gameurl);
$gameurl = rawurlencode($gameurl);
if (file_exists($games['thumbnail'])) {
$thumbnail = $siteurl.$games['thumbnail'];
$thumbnail = urldecode($thumbnail);
} else {
$thumbnail = $siteurl.'img/nopic.jpg';
}
if ($seo=="yes") {
echo '<div class="image-inner1">';
echo'<a href="' . $siteurl . 'game/' . $games['id'] . '/' . $gameurl . '.html' . '">';
echo '<br><img src="' . $thumbnail . '" width="135" height="105" /></a></div>';
echo $games['title'].''.$void.'';
}else {
echo '<div class="image-inner1">';
echo '<a href="' . $siteurl . 'index.php?act=game&id=' . $games['id'] . '">';
echo '<br><img src="' . $thumbnail . '" width="135" height="105" alt="'.$games['name'].'" title="'.$games['name'].'"/></a>';
echo $games['title'].''.$lightbox.'</div>';
}
}
$query->close();
echo '</div>';?>`