11.10.2012, 14:32
The thing is that there is this thing in pawn:
PlayerInfo[playerid][pAdmin]
or
PlayerInfo[i][pAdmin]
And I guess you got the point.
So I want to know how do I make this thing in PHP, it would be very appreciated if someone can give me the code and explain it to me, so variable values will be taken from the mySQL.. I was trying to do some array thingy for ages which didn't work, something like this:
So I'd appreciate if someone can show me how to do the thing I said above, thanks!
PlayerInfo[playerid][pAdmin]
or
PlayerInfo[i][pAdmin]
And I guess you got the point.
So I want to know how do I make this thing in PHP, it would be very appreciated if someone can give me the code and explain it to me, so variable values will be taken from the mySQL.. I was trying to do some array thingy for ages which didn't work, something like this:
Код:
$pData = array(); $user = $_SESSION['user']; if($user) { $withdraw = mysql_query("SELECT * FROM `users` WHERE `id`='$user'"); if(!mysql_num_rows($withdraw)) continue; while($acc = mysql_fetch_assoc($withdraw)) { $pData[$user] = array( "Username" => $acc['username'], "Admin" => $acc['alevel'], "Cellphone" => $acc['phone'], "Tester" => $acc['tester'], "Money" => $acc['cash'], "Job" => $acc['job'], "JobRank" => $acc['jobrank'], "Faction" => $acc['faction'], "Job" => $acc['job'], "Rank" => $acc['rank'], "Paycheck" => $acc['paycheck'], "Job" => $acc['job'], "Accepted" => $acc['accepted'], "Level" => $acc['level'], "Experience" => $acc['exp'] ); } }
