Skip to content

Tag: mysql

Amateur trying to fix dropdown menu from SQL

I’m trying to help a friend with a website. I usually don’t work with PHP, jquery. The dropdown has 4 levels. The first level has 4 points. The 4 points have their own sub-levels, different for each other. I’m trying to find them and then make them display in a dropdown, directly from the da…

How to insert data using a checkbox inside a while loop php

I want to add the value of a checkbox to the specific row in the database. It adds the value to the wrong rows each time. I tried adding a hidden input with a different value. Answer perhaps this might help you understand what I was implying by creating and binding the prepared statements outside the loop. Wi…

MySQL find Array Values in DB Array field

i have an array, that can contain different values for example: Array ( [0] => Allgemeine Pharmazie [1] => Geriatrische Pharmazie ) The WordPress DB contains in the meta_value the following array: a:4:{i:0;s:20:”Allgemeine Pharmazie”;i:1;s:22:”Geriatrische Pharmazie”;i:2;s:16:&#8…

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…

Adding HTML codes inside PHP

I’m trying to add a view button to my table but I’m getting a syntax error, unexpected href. Seems like I’m wrong with the formatting. Still trying to learn PHP but is it possible to add href to the …