[PHP]Help me with get account data
#2

Код:
"SELECT * FROM `Users` ORDER BY `Score` DESC LIMIT 0,100"
u are limiting the selecting of rows to 0?


Код:
 
        $Count = 1; 
        $query = mysqli_query($mysql, "SELECT * FROM `Users` ORDER BY `Score` DESC LIMIT 0,100"); 
        while($row = mysqli_fetch_array($query)) {  
        echo ' 
        <tr> 
            <td>'.$Count.'</td> 
            <td><a href="?p=Topscores&Name='.$row['Name'].'">'.$row["Name"].'</a></td> 
            <td>'.$row["Score"].'</td> 
            <td>'.$row["TJobs"].'</td> 
            <td>'.$row["CJobs"].'</td> 

        </tr> '; 
        $Count++; }
also why are you using and incrimenting the count variable?
Reply


Messages In This Thread
[PHP]Help me with get account data - by thimo - 12.02.2014, 13:56
Re: [PHP]Help me with get account data - by kN1GhT - 12.02.2014, 14:22
Re: [PHP]Help me with get account data - by thimo - 12.02.2014, 14:26
Re: [PHP]Help me with get account data - by Kirollos - 12.02.2014, 14:49
Re: [PHP]Help me with get account data - by thimo - 12.02.2014, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)