I am creating a competition page and have a ticket table in mysql. Each ticket contains an availability column which is either ‘1’ or ‘0’ (true or false). When the user adds a ticket to their basket I …
apache2 not executing php statements in opensuse linux
i have apache2 running as a local server. I had a wordpress site on localhost running happily. In trying to enable running phpMyAdmin apache2 somehow stopped executing php code, and I’ve been unable to re-enable it. any help most gratefully received Answer This is a configuration issue. There should be …
Positioning of arrays
Is it possible to position an array value depending on a specific numerical array? I have this table: and this is what I have so far: https://shizen.hakumei.org/test.php It shows only User7’s name and image link where I plan to show box 01 for User1’s name and image link then box 16 for User2̵…
Open specific url when successful pay – paypal button
I created Smart paypal button and got this code I am wondering, is there function to open specific url after successful payment to add in onApprove function after alert? Will it work like that? Will window.open() work in this case? Answer You want to use location.assign. The syntax:
How can I remove parentheses from WooCommerce subcategory product count
On any default WooCommerce category page, it lists categories (product photo, title/link) with a number in parenthesis. For example, Finishing (6). The page html looks like this: I tried this php to remove just the parenthesis, obviously that didn’t work: My goal is to style that count with a background…
group result array in PHP
im using array for open a file, if value match in array key, then will open file that related with value. when i try, it will open file as much as data in database. lets say i have 6 data in database, like : If data already found in array then just open once file for each key. how to
How to validate password to check if it is the same password as in database?
I have login form in Laravel that uses email and password to log on site. I have all validation and everything works fine except for password. When I type wrong password it goes to blank page and I …
How do I call post objects (products) custom fields using shortcodes on posts
I’m trying to show ‘featured products’ on blog posts. These featured products are to be selected with custom fields post objects on the back end for each post. I have written up what I think the PHP …
composer doesn’t install dotenv on Symfony 3.4
I have Symfony 3.4 project and am trying to install the Dotenv component. I’ve ran this command composer require symfony/dotenv:^3.4 and composer said “Nothing to install or update”. I’ve …
memory exhausted by using around 2MB of memory
I am struggling with a php that has memory problem. The script dies with the message: PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 3027408 bytes) in test.php on …