Posted: Mon Jun 05, 2006 10:00 pm
Ok, this is where I have gotten
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
I've tried this
It returns the message - 'Couldn't execute Query -- I'm getting closer
Code: Select all
$startingdate1=($yeartostart.$monthnumberone.$daytostart);
$startingdate=strtotime($startingdate1);
/* echo date('Y/j/n g:i:sa', $startingdate); */
echo date('Y/n/j', $startingdate);I've tried this
Code: Select all
$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.");