I’m trying to hide/show div on link click. But it’s not working properly on my site. I’m using this code on a custom WordPress template. Following is my HTML <div class="col-md-4"> <a id="link-edit-form" href="#" >PROFILE INFO</a><br/> <a id="link-reset-form" href="#">PASSWORD RESET</a><br/> <a id="link-logout-form" href="#">LOG OUT</a> </div> <div class="col-md-8"> <div class="paragraph-styles"> <div id="edit-form-settings"> <?php echo do_shortcode( ‘[wppb-edit-profile ..
Category : twitter-bootstrap
I decided to try the bootstrap and it’s been pain for me, it’s not working. what I did: laravel new project cd project composer require laravel/ui php artisan ui bootstrap npm install && npm run dev Then in the welcome.blade.php I change the code to this snippet so I can test bootstrap: <!doctype html> <html> ..
I’m doing a shopping cart and I need to get the total price of the items in cart. Example after I click the "Add to Cart", the products are coming from a foreach(), so, onclick "Add to Cart", I get the name and the price os the product which was clicked and show it inside ..
instead of creating four card it create new row every time. I use column small 3, i want 4 card listed in one row and fetch data from database as in ecommerce websites <div class="row container bg-light"> <?php while ($result=mysqli_fetch_assoc($link)) { echo "<a href=’com.php?id=$result[id]’ style=’text-decoration:none;’>"; echo "<div class=’col-sm-3 bg-white border rounded shadow’>"; echo "<div class=’bg- ..
I’m trying to build a mini blog system for a project I’m doing. I have a column in my Mysql database called "status", now I want to be able to update that column using a bootstrap toggle. My code is as follows <input type="checkbox" checked data-toggle="toggle" data-on="published" data-off="Draft" data-onstyle="success" data-offstyle="danger"> What can I do to ..
I have a foreach loop which goes trough a list of rules with each rule having a bootstrap dropdown to edit the rule. The dropdown link should open a modal, which it does. The problem is that the event.relatedTarget always has the data from the first dropdown item instead of the actual dropdown item that ..
How to Create HTML Bootstrap Multilevel Menu in PHP and MySQL? I’m trying to write a PHP code that would fetch me a multilevel menu, with unlimited depth. I want to be able to do it with just query and loop. How would I do that? One way I thought of doing it, is if ..
I have a pop-up model that works perfectly in my filter content page, the pop-up modal shows up when i click the button. However, after I filter the output, the pop-up model failed. Suppose i just copy and paste the HTML code to the PHP output, so I’m not sure which parts of it go ..
How to fetch all the record from my database using php mysql in same page. Important: Code is working but i don’t no why only last record showing. Why not showing other record. Anyone help me to fetch all the record using PHP. Here is the Code. https://github.com/imayushshrivastava/mytutora.com/blob/main/data-fetch-using-php.php Exmaple: Like Twitter: User Post – Comment ..
Important: Code is working but i don’t no why only last record showing. Why not showing other record. Anyone help me to fetch all the record using PHP. Here is the Code. https://github.com/imayushshrivastava/mytutora.com/blob/main/data-fetch-using-php.php PHP Code: <?php { $query = "SELECT * FROM Table1 WHERE status=’1′ ORDER BY 1 DESC"; $run = mysqli_query($mysqli, $query); while ($row ..