Skip to content

Search query by size in PHP

I want my site to search for any product that belonged to particular size when clicked any size option in the select input menu on mobile version like shop by size menu in www.brastop.com on mobile version. My problem is on how to extract size variable from option tag and put it in the select query in sizeres…

Symfony knp_paginator query with $_GET

I am a beginner and I try to write a query for a search input using kpn_paginator but I get an error: One of listeners must count and slice given target I can not find the solution, I checked some other topic but cannot understand how to do it in my code. My else work well but my if not.

Remove Duplicates in an array in php

My array: I want to be able to echo out the [month] and not have it duplicated, but still associate the other values to the correct month. To get to this point I have done an array_merge to put them together like you see them. Separately they look like this: #1 #2 I have tried array_unique and that does not

htacess redirecting to js & css files

This is my typical PHP MVC Structure: This is my htaccess configuration: Write now my all requests are going through index.php. In my project files, I am accessing my css & js files located in Resources folder like following: This result in following error I tried to add following Rewrite rule in htaccess…

WordPress show/hide comments form

I have a problem with my wordpress theme. I can’t create a button to show/hide comments form. I have a comments.php file with this code: if ( ! comments_open() && ‘0’ != get_comments_number() &…