Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange date display from mysql

Status
Not open for further replies.

monasa

IS-IT--Management
Jun 27, 2004
41
0
0
CA

The date in my table in mysql database is : enddate = 2004-11-16 but when I try to display this field using php, I had : 2004-11-162

the php code is :

$requet = mysql_query("SELECT stardate, enddate FROM reservation where chambreID LIKE '%$chambre%'") or die(mysql_error());
list($stardate,$enddate) = mysql_fetch_row($requet);

echo $enddate;


Thanks in advance.

M.N
 
I think it's because you're trying to write in french. PHP doesn't understand french, you have to use english. ;-)
 
I suspect that there is something after the echo $enddate; that outputs something - don't know what.
Maybe you could post a bit more of the code, using the [ignore]
Code:
....
[/ignore] tags.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top