PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
returns 2005/7/15 which is the correct date and it is a date that I know is in the file - now the final question is how do I assign the value that comes from the date() function to a variable
$datetouse = date('Y/n/j', $startingdate)
$query = "SELECT * FROM thunde9_thunderhill.fawns.dateofbirth= $datetouse ORDER BY 7 DESC";
$result = mysql_query($query)
or die ("Couldn't Execute Query.");
It returns the message - 'Couldn't execute Query -- I'm getting closer
PastorHank wrote:Strings - I use three pulldowns, one for months (months are January, etc), one for days one for years (and I'm open to suggestions on a better way to do that also, this seems incredibly cumbersome....)
I have a start date and an end date and I just need to be able to retrieve those records that fall between those values. The data in the database is a Date field.
If you are getting the dates from year/month/day selects then you can probably just do: