Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Build a Simple PHP Application Working With Functions Creating the Shirt Display Function

Prakhar Patwa
Prakhar Patwa
11,260 Points

how to put bootstrap into our function, please help me out

<div class="col-lg-4 feature">
                    <div class="panel">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                <a href="shirt.php?id=<?php echo $product_id; ?>" class="btn btn-lg btn-info btn-block">
                                    <span class="glyphicon glyphicon-th-large"></span> View Details
                                </a>
                            </h3>
                        </div>
                        <a href="shirt.php?id=<?php echo $product_id; ?>"><img src="<?php echo $product["img-sm"]; ?>" alt="<?php echo $product["name"]; ?>" ></a>
                        <div class="label label-info price"><span class="glyphicon glyphicon-tag"></span> <sup>$</sup><?php echo $product["price"]?></div>
                    </div>
                </div>
Vedran Brnjetić
Vedran Brnjetić
6,004 Points

Could you please explain a little better what are you trying to do?

Julian Aramburu
Julian Aramburu
11,367 Points

Dear Prakhar, when posting a question as Vedran pointed out, try to explain as much as you can about your problem or about what you are trying to do! That no only helps you but us to help you out!

Cheers!