Jump to content

Help With SQL Statement


stevesimo

Recommended Posts

Hi I wish to retrieve records from a table called order where orderDate contains the text 'LEX' and the order date is greater than or equal to startDate and also the order date is less than or equal to endDate

 

i.e. Select * from orders where orderDate >=startDate AND orderDate <=endDate AND policyRef contains 'Lex' Order by orderDate

 

I am not sure how to write this in PHP, can anyone offer any advice on how I do this?

 

Many thanks,

 

Steve (Blackpool)

Link to comment
https://forums.phpfreaks.com/topic/43955-help-with-sql-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.