Fatal error: Function name must be a string



Code:
01: $dan = date('d');
02: $mjesec = date('m');
03: $godina = date('Y');
04: $poolp = mysql_query("SELECT * FROM `pool_pitanja`");
05: while ($rpool = mysql_fetch_array($poolp,MYSQL_ASSOC)){
06: if ($rpool{'pgod'}<=$godina and $rpool('kgod')>=$godina){
07: if ($rpool('pmje')<=$mjesec and $rpool('kmje')>=$mjesec){
08: if ($rpool('pdan')<>$dan and $rpool('kdan')>=$dan){
09: print "Sve ok";
10: }
11: else {print "Dan nije dobar";}
12: }
13: else {print "Mjesec Nije Dobar";}
14: }
15: else {print "Godina nije Dobra";}
16: }

Error:
Fatal error: Function name must be a string in
C:\Inetpub\elmahr\new\page.header.php on line 6


What is the problem here?

the fields in the sql are varchar


or better yet:
how do i insert date into sql and then compare it with today?

i must have pool start date and pool end date
and if today is in between do something, else do nothing


help?


thanks
.



Relevant Pages

  • Fatal error: Call to a member function on a non-object
    ... I am working on a set of PHP framework so to speak, designed to create module based community & content management based scripts. ... First, if a fatal error is occurring on line 24, why is it executing line 24 successfully and returning data? ... var $loggedIN = false; ... //set realtive variables for the sql, err, and perms classes into the current class for easy access. ...
    (php.general)
  • IIS error installing WSUS.
    ... http://support.microsoft.com/?id=894435 to make sure IIS is running problem ... CultureInfo culture, String[] namedParameters) ... (Error 0x00000643: Fatal error during installation.) ...
    (microsoft.public.windowsupdate)
  • Re: Visual Studio 2005 C++ compiler crash
    ... I don't see a definition of CStringT::Format where the first argument is the opposite kind of string from the CStringT object's kind of string. ... fatal error C1001: An internal error has occurred in the compiler. ...
    (microsoft.public.vc.language)
  • Re: help explaining for this script
    ... fatal error is raised because ... police would probably catch it, but someone might say that a zero length string could never be tainted and then this code would break. ...
    (perl.beginners)
  • Re: saving data from a form into a seperate .html file
    ... Fatal error: Function name must be a string in ... thats what I have, why am I getting this error? ... Prev by Date: ...
    (comp.lang.php)