Skip to content

Tag: php

Invalid characters in XML tag name

We have a huge database where users can create custom fields. Every UTF-8 character is allowed in their name. Until a few weeks ago, when they export their data in XML, only invalid characters that …

sql query selecting birthday today from number format

Let say i have identification card number in this format we can convert the number to birthday by using this code how do i select all user that is having birthday today ? is this possible ? Answer What I understand is first 6 digits of your ic is YYMMDD. If this is not the case please ignore. Accordingly you

Add Timestamp while insertMany() in mongoDB

Hi I am MySQL user and new to mongoDB. I get data from my IOT devices as following: I am inserting it into mongoDB using PHP CodeIgnitor as following: data is getting inserted in collection named as given key as following: Now I want to add timestamp to every row getting inserted. I want data getting inserted…