here user can select multiple foods. i want to save those food items to the database. I have column named “food” in the database i want to save all those selected food items in this column. just like …
Tag: php
Separate received from web-service as object std class [closed]
I got this from web service and tried so many solution that I found in similar topics, but couldn’t separate them to use in my code: stdClass Object ( [getPropsListResult] => [ { …
docker wordpress container can’t connect to mysql container
I’m at a loss here as to not only why this isn’t working but how to further troubleshoot it. I’m new to docker, so could be something obvious, but I can’t find it. I did look over some other links …
PHP total order
I have a site that displays items with radio buttons. I want to make the PHP code display the total for the user when they submit the code. Below is the code I have so far along with the prices for …
Modifying SQL entries with PHP hreferences
So I’m having trouble understanding how to go about modifying SQL entries individually while at the same time printing out all the results to a screen. I have root_user.php print out all of the users …
Store variable from SQL Table to use later using PHP
I would like to be able to store a variable from a column to use to update a variable in another column. Here is my code: $sqlPlaceNumber = “SELECT @locationPlace := `$locationPlace` FROM `$…
pass parameters in url via php
i am tying to pass some parameters in my URL via php. Below is my code i have tried. <button onclick="window.location.href='process2.php?name=' .$fname. '&Usrname=' .$name " style="…
PHP Shopping cart // show results of different rows
Hell community, I am trying to build up a shopping cart which basically looks like an excel table. The layout and the main code is working good but I can add only products from one row to the shopping …
Paginating with laravel collection in api
I got problem in Laravel Api collection paginate. I have categories and I need to bring all products that belongs to a single category My code: public function show($id) { $category = Category:…
Issue with Category tree in symfony
I created a Category Tree in symfony 5 I’ve following: Category.php Entity: /** * @ORMId() * @ORMGeneratedValue() * @ORMColumn(type=”integer”) */ private $id; /** * @ORMColumn(type=”…