I’m currently working as a php dev, and now has an assignment with some old php legacy code that’s intended to filter certain car details before adding it into the DB. What I’m currently stuck on is …
Integer value returns 0 after trying to convert it from string
I have variable like this with the type of string: Now I tried setting it’s type to integer, so I tried these: So how to properly return the value 65000 as integer? Answer You wrong code, the first it’s correct and the second is intval($variable) I hope it’s just a typing error but in the va…
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 witho…
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 …
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 …
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…
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 web…
Multiple search clause for many-to-many relationships in Laravel
Good day. I have this stuff that has been a little bit problematic for me in my application. I have a Staff model which has a many to many relationship with a Company model. Hence, I have a …
get the index number of data gotten from mysql database
I am trying to get all user data from my mysql table and i want to check the index number of where a particular data is for example if there are 10 users in the database and after getting the data …
How can I work with React in a Laravel project? [closed]
I started a fresh Laravel project and re-scaffolded it to use React instead of Vue. I have another developer that will be coding the React, but I will be responsible for the Laravel/backend code. I …