I am using a WordPress plugin (Advanced CF7 DB). It puts the results of the contact form into the MySQL database so it can be displayed on the front end of the website. There are two tables with data like this. Table 1: Table 2: The id in table 1 corresponds to the data_id in table 2. I need to
CGI web application, struggle with variables
this is my first post here. Been reading stackoverflow for a long time and i want to take a time to appreciate everything you do to help community. Thank you. A lack of knowledge in scripting area leads me to creating this post. Due to complication of my problem (in my opinion) i wasnt able to google the solu…
How to combine a input and a hidden value in a form?
I would like to know if there is a way to add a (hidden) value to a input value in a form. For example, I would like to have a number input like so : <input type=”number” name=’questionA’ hidden_added_to_the_input_value=”+test”> (the code doesn’t work), the user…
Add product weight and dimensions as order item meta data on WooCommerce admin manual orders
based on Save product custom-field as custom order item metadata for WooCommerce admin manual orders I have these codes that show the weight and dimensions of the product for orders placed from the frontend, but I can’t get them to work for orders that are placed manually from the backend. When I add th…
PHP multiply column of multidimensional array and get sum of result
Very basically you suppose I have this arrays: $a = [1,2,3]; $b = [4,5,6]; and now I want to Multiply the numbers of columns, for example: 1*4 2*5 3*6 and get sum multiply of all calculation, for …
Dropdown content not showing correctly on button click – dynamically
I have a issue with dropdown content on side http://www.filmwatch.sk/serialy/the-godfather/ When I click on button 1.seria show dropdown content 1.epizode, but when I click on button 2.seria show same dropdown content 1.epizode, but I need show 2 and 3 epizode (dropdown content Godfather S02E02 and Godfather …
clear last exception error from PHPMailer for next loop
lets say i have this: so the exception in next loop is remembered and displayed, the output above is: so my question is, how do i clear the error after i process it so i can start fresh? Answer Because of the exception at the second address, the line with $mail->clearAddresses() is never reached. So your t…
PHP. How to read a file, if it is writing without a problem with “a+”, but is not readable with “r”?
I have two scripts: one of them writes the value of a variable to a file. In another script, I try to read it. It is written without problems, but it is not readable. Here I write to a file: Here I read the file: The code runs on “sprinthost” hosting, if that makes a difference. There are suspicio…
Trying to access array offset on value of type null in laravel
I am getting this error when I am trying to create a new object I am using this package https://github.com/srmklive/laravel-paypal to integrate the PayPal ExpressCheckout in my Laravel app Error Message ErrorException Trying to access array offset on value of type null Answer You should clear the cache. Run t…
Getting most popular tags [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question Writing a query that returns like the table below. What I am trying to do i…