Skip to content
Advertisement

Tag: sql

Dynamic value in sql query using php

I want to search a certain string in all the columns of different tables, so I am looping the query through every column name. but if i give it as dynamic value it does not seem to work. what is wrong?…

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

Return all rows from an array

I’m trying to return a comma separated list of location names from a database. So far I have the SQL statement that I know works because it returns the correct results when tested in phpMyAdmin. I’m …

Advertisement