•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 374,006 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,849 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 253 | Replies: 3
![]() |
| |
•
•
Join Date: Mar 2008
Posts: 63
Reputation:
Rep Power: 1
Solved Threads: 3
Hello this statement below works when the date is set as 02/02/2008 but when i enter it like this 2/2/2008 it dont search the date, in the database the date is set as 2/2/2008 because i need it in that format. i want to search dates from and to like i have wrote in the statement.
sql Syntax (Toggle Plain Text)
$sql = "SELECT DayofWeek, Bookingdate, FROM peter WHERE Bookingdate BETWEEN '%$value1%' AND '%$value2%';
Last edited by peter_budo : Apr 1st, 2008 at 6:59 am. Reason: Keep It Organized - please use [code] tags
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
- Open In New Window Php (PHP)
- XP not booting - lsass.exe not found (Windows NT / 2000 / XP / 2003)
- I lack focus... (Java)
Other Threads in the MySQL Forum
- Previous Thread: how to generate a mysql query from a english question
- Next Thread: ip blocker db problem


Hybrid Mode