Skip to content

Tag: php

Dynamic MySQL Query with PHP

I am looking for a way to make dynamic queries to my MySQL server. At the moment this is the code I use to update data on the server: As you can see, the SQL column names are the same as thedeskAttrkeys. I’m looking for a way to make this line a loop so, that I don’t need to change

Impossible to access an attribute on a string variable

In my controller i just pass some users on my twig view. Here is my function : And this is my twig view where i want to display some information on a html table : And i got this error : Impossible to access an attribute (“name”) on a string variable (” “). for this line : Thanks for he…

LinkedIn API OAuth refresh token

I am using LinkedIn API to pull updates from there and display on the website. While using OAuth, I am storing the token in a file and then pull it from there again to prevent the login popup. However, I am not clear once my token expires how will it get refreshed. Following is how I am reading the token