Hi there, at first i would like to say that i m totally n00b at php ok? so take it easy with me...
I used to program clipper some ages ago so php isnt being so dificult but i like to understand everything.. i m not happy just seeing the program working 😃
So, i started making some codes using dreamweaver and some "stolen" codes 😃
first of all... the database
<?php require_once('Connections/php.php'); ?>
<?php
mysql_select_db($database_php, $php);
$query_jogos = "SELECT * FROM games ORDER BY nome ASC";
$jogos = mysql_query($query_jogos, $php) or die(mysql_error());
$row_jogos = mysql_fetch_assoc($jogos);
?>
this is ok, but i made i menu and got a little lost with that
<?php
do {
?>
<option name="codigo" value="<?php echo $row_jogos['codigo']?>"><?php echo $row_jogos['nome']?></option>
<?php
} while ($row_jogos = mysql_fetch_assoc($jogos));
$rows = mysql_num_rows($jogos);
if($rows > 0) {
mysql_data_seek($jogos, 0);
$row_jogos = mysql_fetch_assoc($jogos);
}
?>
but i got a little lost on this code
anybody could explain this code in a simple way?
😕
Thanx 😃