Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I need to describe the functionality of this code, what it does, it's a challenge but I don't know anything about databases

I need to describe the functionality of this code, what it does, it's a challenge but I don't know anything about databases

Scheduled Pinned Locked Moved The Lounge
phpdatabasehelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vinicius Reis 2022
    wrote on last edited by
    #1

    0){
    while($row = mysqli_fetch_array($result)){
    $tableName = $row['TABLE_NAME'];
    $count = 0;
    echo '------------------- INIT '.$tableName.' TABLE ---------------'.PHP_EOL;
    do{
    $tableQuery = "SELECT * FROM ".$tableName." limit ".$count*$offset.", $offset";
    if($resultTableQuery = mysqli_query($link, $tableQuery)) {
    if (mysqli_num_rows($resultTableQuery) > 0) {
    while ($tableRow = mysqli_fetch_array($resultTableQuery)) {
    echo ('('.$count.') '.$tableName.': ');
    echo implode(',',$tableRow);
    echo PHP_EOL;
    }
    }
    }
    $count++;
    }while(mysqli_num_rows($resultTableQuery));
    echo '------------------- END '.$tableName.' TABLE ---------------'.PHP_EOL;
    }
    mysqli_free_result($result);
    }
    } else{
    echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
    }
    mysqli_close($link);

    Mike HankeyM P 2 Replies Last reply
    0
    • V Vinicius Reis 2022

      0){
      while($row = mysqli_fetch_array($result)){
      $tableName = $row['TABLE_NAME'];
      $count = 0;
      echo '------------------- INIT '.$tableName.' TABLE ---------------'.PHP_EOL;
      do{
      $tableQuery = "SELECT * FROM ".$tableName." limit ".$count*$offset.", $offset";
      if($resultTableQuery = mysqli_query($link, $tableQuery)) {
      if (mysqli_num_rows($resultTableQuery) > 0) {
      while ($tableRow = mysqli_fetch_array($resultTableQuery)) {
      echo ('('.$count.') '.$tableName.': ');
      echo implode(',',$tableRow);
      echo PHP_EOL;
      }
      }
      }
      $count++;
      }while(mysqli_num_rows($resultTableQuery));
      echo '------------------- END '.$tableName.' TABLE ---------------'.PHP_EOL;
      }
      mysqli_free_result($result);
      }
      } else{
      echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
      }
      mysqli_close($link);

      Mike HankeyM Offline
      Mike HankeyM Offline
      Mike Hankey
      wrote on last edited by
      #2

      Wrong forum, notice the "Ask A Question?" at the top of the page. Also give a little more description of what you've tried, what's wrong, et.. People are happy to help when they know the problem.

      PartsBin an Electronics Part Organizer is finally available for download. JaxCoder.com

      V 1 Reply Last reply
      0
      • V Vinicius Reis 2022

        0){
        while($row = mysqli_fetch_array($result)){
        $tableName = $row['TABLE_NAME'];
        $count = 0;
        echo '------------------- INIT '.$tableName.' TABLE ---------------'.PHP_EOL;
        do{
        $tableQuery = "SELECT * FROM ".$tableName." limit ".$count*$offset.", $offset";
        if($resultTableQuery = mysqli_query($link, $tableQuery)) {
        if (mysqli_num_rows($resultTableQuery) > 0) {
        while ($tableRow = mysqli_fetch_array($resultTableQuery)) {
        echo ('('.$count.') '.$tableName.': ');
        echo implode(',',$tableRow);
        echo PHP_EOL;
        }
        }
        }
        $count++;
        }while(mysqli_num_rows($resultTableQuery));
        echo '------------------- END '.$tableName.' TABLE ---------------'.PHP_EOL;
        }
        mysqli_free_result($result);
        }
        } else{
        echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
        }
        mysqli_close($link);

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Reposting here will make you no friends. What is the function of this code[^]

        1 Reply Last reply
        0
        • Mike HankeyM Mike Hankey

          Wrong forum, notice the "Ask A Question?" at the top of the page. Also give a little more description of what you've tried, what's wrong, et.. People are happy to help when they know the problem.

          PartsBin an Electronics Part Organizer is finally available for download. JaxCoder.com

          V Offline
          V Offline
          Vinicius Reis 2022
          wrote on last edited by
          #4

          I need to describe the functionality of this code, what it does, it's a challenge but I don't know anything about databases

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups