<?php
$accstat = "|Account Status:</TD><TD>(.*?)</TD></TR>|i";
$accstat = $accstat[1];
if ($accstat == '<span class="red"><b>Free Account</b>') { $status='0';}
if ($accstat >= '<span class="green"><b>Premium Account</b>') { $status='1';}
Account Status pokazuje się w takich formach:
Premium Account
(Premium
time expires at Jun 03 2009
, 12
:00
:00 CEST
) lub:
Free Account
(Premium
time expired at Apr 28 2009
, 17
:55
:38 CEST
) lub po prostu:
Free Account
Jak zrobić by działało to co chce zrobić ;s chce zapisywać $status do bazy danych... ale wogóle nie działa..
?>