fork download
  1. $sql_select = "SELECT * FROM users";
  2. $result = mysql_query($sql_select);
  3. $row = mysql_fetch_array($result);
  4. do
  5. {
  6. printf("<div class="col-xs-6 col-lg-4">
  7. <div class="list-item box r m-b">
  8. <a herf="" class="list-left">
  9. <span class="w-40 avatar">
  10. <img src="$row['gavatar']" alt="...">
  11. <i class="on b-white bottom"></i>
  12. </span>
  13. </a>
  14. <div class="list-body">
  15. <div class="text-ellipsis">
  16. <a href="">$row['username']</a>
  17. </div>
  18. <small class="text-muted text-ellipsis">Designer, Blogger</small>
  19. </div>
  20. </div>
  21. </div>);
  22. }
  23.  
  24. while($row = mysql_fetch_array($result));
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
$sql_select = "SELECT * FROM users";
^
Main.java:2: error: class, interface, or enum expected
$result = mysql_query($sql_select);
^
Main.java:3: error: class, interface, or enum expected
$row = mysql_fetch_array($result);
^
Main.java:4: error: class, interface, or enum expected
do
^
Main.java:6: error: unclosed string literal
    printf("<div class="col-xs-6 col-lg-4">
                                         ^
Main.java:7: error: <identifier> expected
        <div class="list-item box r m-b">
                  ^
Main.java:7: error: illegal start of type
        <div class="list-item box r m-b">
                   ^
Main.java:7: error: <identifier> expected
        <div class="list-item box r m-b">
                                        ^
Main.java:7: error: ';' expected
        <div class="list-item box r m-b">
                                         ^
Main.java:8: error: ';' expected
          <a herf="" class="list-left">
                    ^
Main.java:8: error: <identifier> expected
          <a herf="" class="list-left">
                          ^
Main.java:8: error: illegal start of type
          <a herf="" class="list-left">
                           ^
Main.java:8: error: <identifier> expected
          <a herf="" class="list-left">
                                      ^
Main.java:8: error: ';' expected
          <a herf="" class="list-left">
                                       ^
Main.java:9: error: <identifier> expected
            <span class="w-40 avatar">
                 ^
Main.java:9: error: illegal start of type
            <span class="w-40 avatar">
                       ^
Main.java:9: error: <identifier> expected
            <span class="w-40 avatar">
                        ^
Main.java:9: error: ';' expected
            <span class="w-40 avatar">
                                     ^
Main.java:10: error: > expected
              <img src="$row['gavatar']" alt="...">
                  ^
Main.java:10: error: <identifier> expected
              <img src="$row['gavatar']" alt="...">
                      ^
Main.java:10: error: illegal start of type
              <img src="$row['gavatar']" alt="...">
                       ^
Main.java:11: error: > expected
              <i class="on b-white bottom"></i>
                 ^
Main.java:11: error: illegal start of type
              <i class="on b-white bottom"></i>
                                            ^
Main.java:11: error: illegal start of expression
              <i class="on b-white bottom"></i>
                                             ^
Main.java:12: error: illegal start of type
            </span>
             ^
Main.java:12: error: illegal start of expression
            </span>
              ^
Main.java:13: error: illegal start of type
          </a>
           ^
Main.java:13: error: illegal start of expression
          </a>
            ^
Main.java:14: error: > expected
          <div class="list-body">
               ^
Main.java:15: error: > expected
            <div class="text-ellipsis">
                 ^
Main.java:16: error: > expected
              <a href="">$row['username']</a>
                 ^
Main.java:16: error: unclosed character literal
              <a href="">$row['username']</a>
                              ^
Main.java:16: error: ';' expected
              <a href="">$row['username']</a>
                                ^
Main.java:16: error: unclosed character literal
              <a href="">$row['username']</a>
                                       ^
Main.java:16: error: illegal start of type
              <a href="">$row['username']</a>
                                          ^
Main.java:16: error: ';' expected
              <a href="">$row['username']</a>
                                           ^
Main.java:16: error: illegal start of type
              <a href="">$row['username']</a>
                                            ^
Main.java:16: error: <identifier> expected
              <a href="">$row['username']</a>
                                             ^
Main.java:17: error: ';' expected
            </div>
             ^
Main.java:17: error: <identifier> expected
            </div>
                 ^
Main.java:18: error: > expected
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                  ^
Main.java:18: error: illegal start of type
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                   ^
Main.java:18: error: <identifier> expected
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                        ^
Main.java:18: error: '(' expected
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                         ^
Main.java:18: error: illegal start of type
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                                                   ^
Main.java:18: error: ';' expected
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                                                                     ^
Main.java:18: error: <identifier> expected
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                                                                      ^
Main.java:18: error: <identifier> expected
            <small class="text-muted text-ellipsis">Designer, Blogger</small>
                                                                            ^
Main.java:19: error: <identifier> expected
          </div>
           ^
Main.java:19: error: <identifier> expected
          </div>
               ^
Main.java:20: error: <identifier> expected
        </div>
         ^
Main.java:20: error: <identifier> expected
        </div>
             ^
Main.java:21: error: <identifier> expected
    </div>);
     ^
Main.java:21: error: <identifier> expected
    </div>);
         ^
Main.java:21: error: illegal start of type
    </div>);
          ^
Main.java:21: error: <identifier> expected
    </div>);
           ^
Main.java:21: error: ';' expected
    </div>);
            ^
Main.java:24: error: illegal start of type
while($row = mysql_fetch_array($result));
^
Main.java:24: error: <identifier> expected
while($row = mysql_fetch_array($result));
     ^
Main.java:24: error: ';' expected
while($row = mysql_fetch_array($result));
      ^
Main.java:24: error: illegal start of type
while($row = mysql_fetch_array($result));
           ^
Main.java:24: error: <identifier> expected
while($row = mysql_fetch_array($result));
                                      ^
Main.java:24: error: ';' expected
while($row = mysql_fetch_array($result));
                                       ^
Main.java:24: error: reached end of file while parsing
while($row = mysql_fetch_array($result));
                                         ^
64 errors
stdout
Standard output is empty