Variable inside SQL Select statement.
Variable inside SQL Select statement.
![Beekeeper](https://secure.gravatar.com/avatar/3bbb991530a2ddf8ac84c4fba6c845b7/?default=https%3A%2F%2Fvanillicon.com%2F3bbb991530a2ddf8ac84c4fba6c845b7_200.png&rating=g&size=120)
How do you insert a query string in the SQL select statement
.
I want to get the paramter from the url and want to place it here using variable.
f.paiddate BETWEEN '".$yearURL."-01-01 00:00:00' AND '".$yearURL."-12-31 23:59:59'
URL is something like this
http://example.com?yr=2018
This discussion has been closed.
Answers
Is this a question regarding Datatables?
Looks like you are using PHP. Maybe this doc will help:
http://php.net/manual/en/reserved.variables.get.php
Kevin
Yes, sorry to mention the Datatable.
I am using Ajax to call the query and using array to output the SQL
$rows
.Using
columns:[ ]
option to output all the columns into the table.