skip to Main Content

Issue querying a json value in laravel project

I'm trying to fetch a record from MSSQL table based on field value which contains json data. Following is the sample column value for 'updated_value' column: [[{"phone_number":"5555555555","phone_type":"H","inactive_date":null,"restrictions":["SU","F"],"start_time":null,"end_time":null}]] My query is: $existing = ContactChangeLogs::latest() ->where('updated_value->phone_number', '5555555555') ->first(); But dd($existing) gives null…

VIEW QUESTION

Using old school ASP.NET / C# backend with web.config – I need a dynamic connection string

I have the following connection string in my web.config: <add name="ConvMapping.Properties.Settings.ifl" connectionString="Data Source=serverInfo;Initial Catalog=database;Persist Security Info=True;User ID=userid;Password=password" providerName="System.Data.SqlClient" />` The issue is now we have to use the database based on a selection. So, example I want to do something…

VIEW QUESTION
Back To Top
Search