Sometimes my script receives a $_POST[“is_searchfield”] request from a form. Then I want to use this variable as a part of a “Where” clause of a MySQL query. Otherwise this part of the “Where” clause shouldn’t afflict the rest of the query. For the query I use a prepa…
PHP script does not execute the MYSQL command
I want to update price on invoice with this PHP code (the config file is included, more SQL statements are executed above this): full code (html form): Whole script and things around are working, but the MYSQL exec. isnt working for some reasons (no errors at all) Answer This: should be: Don’t put param…
Subscript in PHP and Loops
I am using ACF and PHP to create a WordPress website currently working through basically a loop and looking to connect a subscript and a tag by an ID that needs to have a counter increment on it so that the ID can change from #footnote-top-1 to #footnote-top-2, #footnote-top-3, etc and have the link also chan…
How to insert contents from AJAX result into an element without removing its existing contents?
I’d like to first point out that english is not my first language and im a newbie tryna learn news things so i apologize if i might sound confusing. So here it goes, im trying to make an image viewer for my local image files and i decided to try and make a “load more” button using jquery/aja…
POST variable verification
I want to build a simple discount system. My idea is something like this: user will enter code & I want to verify it with PHP & update the price on the invoice (can do this part, that’s why i …
Show the users that I liked using Laravel
I’m working on a small project using Laravel, and I would like to create a like and dislike system, so a user can like one to many more users. I already have a table called Users (default by Laravel), now I have created another table called favorite_user with id, user_id and liked_the_user. How can I ge…
HTML button not selecting correct form value
HTML button not selecting correct form value. The following code selects data and displays it correctly in a html table: fname, lname , customer_id and the last column in the table shows a button …
Is there a problem with the $monthlyInvoices variable?
This is my job. When I run this job the online invoices query doesn’t display anything, but what is intriguing is that when I swap the places of the $onlineInvoices and the $offlineInvoices variables …
PHP: Can not deal with multiple external conditional variables correctly
It is me who can not deal with multiple external conditional variables correctly, not PHP. There were several solutions offered by the Stack Overflow while I was preparing this question but none of …
how to get the data from ajax request then use it in php conditional statemtn
I want to create an ajax post request that gets the value of the radio button then use it in a PHP conditional statement. So far i have tried this code (all code is from one php file): the alert message shows the value of the radio button when I clicked them but the echo in PHP condition is not