[Pedido] Passar de PHP para Pawn.
#1

Como seria o seguinte script em pawn?

PHP код:
<?php
        $conn 
mysql_connect('localhost''root''');
        
mysql_select_db('samp');
        
$query mysql_query("SELECT * FROM `usuarios` ORDER BY Matou DESC LIMIT 10");
        echo 
"<table border = 1 style='font-size : 16px;width:100%;'>";
        echo 
"<tr bgcolor='B0E0E6'>
            <th scope='col'>Nome&nbsp</th>
            <th scope='col'>Matou&nbsp  </th> <th scope='col'>Morreu&nbsp  </th> 
            <th scope='col'>Eagle&nbsp  </th> <th scope='col'>Shotgun&nbsp  </th> 
            <th scope='col'>M4&nbsp  </th> <th scope='col'>Sniper&nbsp  </th> 
            <th scope='col'>Remedios&nbsp  </th> <th scope='col'>Comida&nbsp  </th>
            <th scope='col'>Vida&nbsp  </th> 
            <th scope='col'>Fome&nbsp  </th> <th scope='col'>Sono&nbsp  </th>
            </tr>"
;
        while(
$result mysql_fetch_array($query)) {
        echo 
"<tr bgcolor='CFCFCF'>
            <b><td bgcolor='FFFFFF'>
{$result['Nome']}&nbsp</td>
            <td>
{$result['Matou']}&nbsp</td>
            <td bgcolor='FFFFFF'>
{$result['Morreu']}&nbsp</td> 
            <td>
{$result['Eagle']}&nbsp</td> 
            <td bgcolor='FFFFFF'>
{$result['Shot']}&nbsp</td> 
            <td>
{$result['M4']}&nbsp</td>
            <td bgcolor='FFFFFF'>
{$result['Sniper']}&nbsp</td> 
            <td>
{$result['Remedios']}&nbsp</td> 
            <td bgcolor='FFFFFF'>
{$result['Comida']}&nbsp</td> 
            <td>
{$result['Vida']}&nbsp</td>
            <td bgcolor='FFFFFF'>
{$result['Fome']}&nbsp</td>
            <td>
{$result['Sono']}&nbsp</td></b> 
            </tr>"
;
        }
        echo 
"</table>";
    
?>
Reply


Messages In This Thread
Passar de PHP para Pawn. - by HumildadeAgain - 11.03.2013, 20:53
Re: Passar de PHP para Pawn. - by rannyere - 11.03.2013, 21:10
Re: Passar de PHP para Pawn. - by Joao Pedro - 11.03.2013, 21:12
Re: Passar de PHP para Pawn. - by HumildadeAgain - 11.03.2013, 21:16
Re: Passar de PHP para Pawn. - by Falcon. - 11.03.2013, 21:18
Re: Passar de PHP para Pawn. - by HumildadeAgain - 11.03.2013, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)