May I ask next? Why do I have this classification can only show a large class, the small class can not be displayed

Source: Internet
Author: User
Table type has serial book base class serial number BaseClass book base class name
Table Chiclass Serial book sub-class serial number ChildClass book subclass name BaseClass Book base class serial number
 
 
 
Bibliography classification
"Echo $p."
"; $k =0;while ($k
";} $k + +;}} ?>


Reply to discussion (solution)

You mean echo "" $q. "
"; Not shown?

You mean echo "" $q. "
"; Not shown?



Yes!

Print out $BC, $cc see

Print out $BC, $cc see



Is that right?
for ($j =0; $j
{
$p = $BC [$j][baseclass];
echo "";
echo $p. "
";
echo $BC. "
";
$k = 0;
while ($k
{
if ($p = = $CC [$k][baseclass])
{
$q = $CC [$k][childclass];
echo "";
echo "". $q. "
";
echo $CC. "
";
}
$k + +;
}
}
?>

Print_r ($BC);
Print_r ($CC);

Print_r ($BC);
Print_r ($CC);



Print_r ($BC); Array ([0] = = Array ([baseclass] = = computer) [1] = = Array ([BaseClass] = literature) [2] = = Array ([BaseClass] = math) [3] = = Array ([baseclass] = biology))

Print_r ($CC); Array ([0] = = Array ([ChildClass] = design class [BaseClass] + 1) [1] = = Array ([ChildClass] =& Gt Network technology class [BaseClass] + 1) [2] = = Array ([ChildClass] + image processing class [BaseClass] + 1) [3] = = Array ([ChildClass ] = = Database Technology class [BaseClass] + 1) [4] = = Array ([ChildClass] = Software engineering class [BaseClass] = 1) [5] = = Array ([C Hildclass] = calculus [BaseClass] + 3))

The baseclass you $BC are all Chinese characters.
And all the baseclass you $cc are numbers.

$p = $BC [$j][baseclass];
if ($p = = $CC [$k][baseclass])
How could it be equal?

I see! ~ Thank you!

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.