Hi guys!
i try this in code for show who of the team is online (page 5):
<?php
include("lalala.php");
$con = mysql_connect( $host, $user, $senha );
$sql = "SELECT nick, nome FROM pilotos";
$res = mysql_db_query( $db, $sql, $con );
while( $row = mysql_fetch_array( $res )){
$nick = $row["nick"];
$nome = $row["nome"];
$nicks .= " \"$nick\",";
$nomes .= " \"$nome\",";
}
$nicks = substr("$nicks", 0, -1);
$nomes = substr("$nomes", 0, -1);
$TeamMembers = array($nicks);
$InGameName = array{$nomes);
?>
But this don't work's!
I wanna automate the process, i have a little db with team members lfsw nicks and names, so, for i don't need edit the php code every time i add a new team member...
Any light?
Hugs/Abraços,
Saulo Barbosa