I need to describe the functionality of this code, what it does, it's a challenge but I don't know anything about databases
-
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); -
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);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
-
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);Reposting here will make you no friends. What is the function of this code[^]
-
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
I need to describe the functionality of this code, what it does, it's a challenge but I don't know anything about databases