Thanks to BigDog and John Holmes for their suggestions.

I figured it out: it was rather easy, in hindsight, of course:

<?php
$today = getdate();
$month = $today['mon'];
. . .
$query = "SELECT * FROM guest WHERE pdate ~ '{$month}'";
. . .
?>

Works as expected.
Regards,
Andre

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to