Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,368 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!