Jump to content

Zzz_

User
  • Posts

    151
  • Joined

  • Last visited

Community Answers

  1. Zzz_'s post in Вывести данные из mySQL was marked as the answer   
    Если кому нибудь интересно, то вот решение
    $result = mysql_query("SELECT * FROM test"); $result1 = $result;for ($i = 0; $i <= mysql_num_rows($result)-1; $i++){ if (!mysql_data_seek($result, $i)) { continue; } if (!($row = mysql_fetch_assoc($result))) { continue; } for ($k = 0; $k <= mysql_num_rows($result1)-1; $k++){ if (!mysql_data_seek($result1, $k)) { continue; } if (!($row1 = mysql_fetch_assoc($result))) { continue; } if($row["c"] == 0){ if($row1["c"] == 1) $a .= " ".$row1["a"].","; } } echo $row["b"].$a."<br />"; unset($a);}
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy