Hi, I want to read out the asterisk from a birthdate.
First off all I need the timestamp: $startDate['Steinbock'] = mktime (0, 0, 0, 12, 22, 1999); $startDate['Wassermann'] = mktime (0, 0, 0, 01, 21, 2000); $startDate['Fisch'] = mktime (0, 0, 0, 02, 21, 2000); $startDate['Widder'] = mktime (0, 0, 0, 03, 21, 2000); $startDate['Stier'] = mktime (0, 0, 0, 04, 21, 2000); $startDate['Zwilling'] = mktime (0, 0, 0, 05, 21, 2000); $startDate['Krebs'] = mktime (0, 0, 0, 06, 22, 2000); $startDate['Löwe'] = mktime (0, 0, 0, 07, 23, 2000); $startDate['Jungfrau'] = mktime (0, 0, 0, 08, 24, 2000); $startDate['Waage'] = mktime (0, 0, 0, 09, 24, 2000); $startDate['Skorpion'] = mktime (0, 0, 0, 10, 24, 2000); $startDate['Schütze'] = mktime (0, 0, 0, 11, 23, 2000); $startDate['Steinbock2'] = mktime (0, 0, 0, 12, 22, 2000); but with 'Jungfrau' AND 'Waage' something is wrong!! if I want to debug this lines with: echo date("m - Y",$startDate['Steinbock'])."<BR>"; echo date("m - Y",$startDate['Wassermann'])."<BR>"; echo date("m - Y",$startDate['Fisch'])."<BR>"; echo date("m - Y",$startDate['Widder'])."<BR>"; echo date("m - Y",$startDate['Stier'])."<BR>"; echo date("m - Y",$startDate['Zwilling'])."<BR>"; echo date("m - Y",$startDate['Krebs'])."<BR>"; echo date("m - Y",$startDate['Löwe'])."<BR>"; echo date("m - Y",$startDate['Jungfrau'])."<BR>"; echo date("m - Y",$startDate['Waage'])."<BR>"; echo date("m - Y",$startDate['Skorpion'])."<BR>"; echo date("m - Y",$startDate['Schütze'])."<BR>"; echo date("m - Y",$startDate['Steinbock2'])."<BR>"; to read out the month and year of the asterisks PHP returns: 12 - 1999 01 - 2000 02 - 2000 03 - 2000 04 - 2000 05 - 2000 06 - 2000 07 - 2000 12 - 1999 <<<< error 12 - 1999 <<<< error 10 - 2000 11 - 2000 12 - 2000 all other asterisks are ok... Does anyone know how to fix it?? Or is it a bug?? Anyone knows a better idea to get the asterisk from a given date??? Thanx... -- Mit freundlichem Gruß, Johannes Tyra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php