Skip to content

Commit

Permalink
fetch_array matyt uzsiliko per klaida
Browse files Browse the repository at this point in the history
  • Loading branch information
apsimetu committed Dec 6, 2014
1 parent a06054e commit 6ad798d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tex/index.php
Expand Up @@ -73,9 +73,7 @@ function facebook_count($url){

<?php

while($row = mysqli_fetch_array($result))
while ($row = mysqli_fetch_assoc($sql)) {
{

if ($row['status'] == 'Laimėta') { $style = 'background-color: #67FEA3'; }
if ($row['status'] == 'Pralaimėta') { $style = 'background-color: #FF4040'; }
Expand Down Expand Up @@ -112,7 +110,7 @@ function facebook_count($url){
echo "<td>" . $row['koef'] . "</td>";
echo "<td><b>" . $row['status'] . "</b></td>";
echo "</tr>";
} }
}
echo "</table>";

$sql = mysqli_query ($con, "SELECT COUNT(id) FROM bets");
Expand Down

0 comments on commit 6ad798d

Please sign in to comment.