Skip to content
Advertisement

Tag: php

Get Ip From Client Apache and Php

Want to ask, but maybe this question is a duplicate. I’m sorry that all the answers to the other questions didn’t work in my case. Question I have a server with apache as webserver running php+7.4 with default settings and certbot as SSL with public IP 192.168.1.11, I want to retrieve the IP of the client that opens my website,

Show JS alert on a form php

I have the following php code, which is a wordpress hook to display an address autocomplete form on my website’s cart page. The function was written in functions.php file. I dont want the customer’s to enter their unit numbers or house numbers. As such, I want to display a simple js alert if a customer enters “/” charachter in the

Error updating record: Unknown column ‘Jason’ in ‘field list’

Forgive me if this already exists, but I didn’t see anything close enough to my issue to offer any kind of solution or path toward solving. My Query: $sql = “UPDATE users SET FirstName=$fname WHERE id=$id”; $fname does equal Jason. But it should be changing the sql field FirstName to “Jason”. Instead, it is trying to find a field named

can I throw custom error in laravel-lighthouse

is the any way that throw an error by GraphQLErrorError with no additional data except message. the current return data is it contains unnecessary data but I want something like: Answer You can throw your own exceptions, that will allow you to do that. Check https://lighthouse-php.com/5/digging-deeper/error-handling.html#registering-error-handlers.

Add record in ZOHO API

I am trying to add a record (contact) to the ZOHO database using their API after submitting an order. This requires an authorization token with a validity of 60 minutes which I can generate with a grant token, but which I can only generate with user interaction (GET). Is there a way to get a grant token without user interaction?

Change JSON value in database with PHP

I have a params column in my MySQL database containing this: ‘{“usergroup” : “1”, “language” : “ENG”}’; . Can I change only the language value ENG to GER in just 1 step using a standard PDO update? Obviously, I could just SELECT the whole content of my table cell ‘{“usergroup” : “1”, “language” : “ENG”}’; , decode it with json_decode,

get the id of selected category php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 10 months ago. Improve this question this line shows the name of category for example stationary..but this should be the id of selected category.is there any need to declare the id?$category_id

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘gelecek_üyeliği_sistemi.action_users, users’ doesn’t exist

I need to get these data from action_users table I have write a query in Mysql and it works fine but when I am trying to Convert SQL Statement into Laravel Eloquent i got this error i am using laravel 8 SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘gelecek_üyeliği_sistemi.action_users,users’ doesn’t exist (SQL: select users.name, users.email, sum(action_users.point) from action_users,users

Foreach Condition with Ajax form submit button

I was trying to do for each condition for form but for some reason, it is submitting all foreach data with ajax. For some reason the response is i want to send only one option data to the cart. But, its adding all foreach data to cart Please help, Thanks Answer This will serialize all forms mounted on the webpage.

Advertisement