Questions tagged [flourishlib]

Flourish provides a strong, base set of PHP classes that run pretty much anywhere, helping you focus on solving more interesting problems.

Flourish provides, according to its website, a strong, base set of PHP classes that run pretty much anywhere, helping you focus on solving more interesting problems.

Extensive documentation and a sane API help you get stuff done, whether you are building a new app or maintaining a legacy website.

18 questions
0
votes
2 answers

Basic PHP / MVC variable issue

Very beginner here, please go easy :) In our database we have a tinyint field secondary_phone_number which is either 0 or 1 value. We use the flourish MVC. 0 = False, 1 = True. I am trying to display a checkbox that indicates if the…
firecasey
  • 117
  • 9
0
votes
2 answers

Trying to set php variable from sql field

Trying to set a variable where show_hours is true if SortingMethodId is equal to 3, 6 or 7. Right now its only if the SortingMethodId is equal to 3 (from MySQL db), as below: $this->data["show_hours"] = ($company->getSortingMethodId() == 3); So I…
firecasey
  • 117
  • 9
-2
votes
3 answers

How to get the record with maximum id?

I am using MySQL with Flourish. Let's suppose I have a table called Foo and it has a column called id. My question is: What is the flourish equivalent for the following query: select * from Foo where id = (select max(id) from Foo); Thanks
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
1
2