php - CodeIgniter - Get a variable within quotes. -
I have to get a variable between the quotation marks in the codeigniter. But how can I complete it?
$ this-> Db- & gt; Where ('boxing' gt; ', $ start); For example $ beginning value is the 2014-03-17 codeigniter sees it like this:
$ this - & gt; Db- & gt; Where ('boekingsdatum & gt;', 2014-03-17);
But I would like to like it:
$ this-> Db- & gt; Where ('Boekingsdatum & gt;', '2014-03-17');
So I thought the answer would be something like this:
$ this-> Db- & gt; Where ('bokingstatum'; ',' $ start ');
But then the variable is not written as a variable
You can do for dates and only for dates
$ this- & gt; Db- & gt; Where ('bokingstatum', date ("YMD", strotomom ($ start));
Comments
Post a Comment