strtotime function works only once
| From: | Leila Raffin | Date: | Wed, 01 Nov 2000 15:20:34 +0000 |
| Subject: | strtotime function works only once | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4093@lists.php.net to get a copy of this message | ||
Hi,
Could someone help me with the function strtotime ? When I use it only once,
it works fine and I've got the result I need. But if I include it in a loop,
I have an internal error message: "The server encountered an internal error
or misconfiguration and was unable to complete your request".
This works fine:
If ($row = mssql_fetch_array($sql_result)) {
$Vac_Begin_Date = date ("d M Y", strtotime($row["VacBeginDate"]));
$Vac_End_Date = date ("d M Y", strtotime($row["VacEndDate"]));
}
This doesn't work:
while ($row = mssql_fetch_array($sql_result)) {
$Vac_Begin_Date = date ("d M Y", strtotime($row["VacBeginDate"]));
$Vac_End_Date = date ("d M Y", strtotime($row["VacEndDate"]));
}
I have Apache with PHP 4.0.2 and MS SQL Server on Windows NT.
Any idea ?
Leila.