phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] RE: Timetrack Problem, Help for this?


From: Brian Johnson
Subject: Re: [Phpgroupware-developers] RE: Timetrack Problem, Help for this?
Date: Thu, 21 Nov 2002 15:09:18 +0000

Here's where I don't know exactly how to help you but have a suggestion - try to
confirm that Apache is able to run PHP code



Reiner Jung (address@hidden) wrote*:
>
>I make a diff between the sections in the file. All the same.The Red Hat
>Machine is with Apache 2 and php 4.2.2. Maybe this is the Problem ?.
>The servers all updated every day from cvs. Last update today morning.
>
>register_globals are on
>######################################################################
>
>Here is that section of the code (it's in timetrack/index.php) from my
>working
>copy - I've included a few more lines
>
>Please load your index.php file, compare it to all of this, and let us
>know what
>you find
>
>         <center><h3><?php echo lang("Employee In/Out Board");
>?></h3></center>
>         <? /* Here I have to do my first query, to check the user's
>checkin status
>*/
>         $uid = $GLOBALS['phpgw_info']["user"]["account_id"];
>         /* Now use the uid to reference the employee_stats.inorout
>field */
>         $GLOBALS['phpgw']->db->query("select inorout from
>phpgw_ttrack_emplyprof"
>          . " where id= " . $uid);
>         $GLOBALS['phpgw']->db->next_record();
>         $status = $GLOBALS['phpgw']->db->f("inorout");
>         $prefix = lang("you are currently checked");
>         switch ($status) {
>                case "I":
>                 $stat_word = lang("In");
>                 $action = lang("Check Out");
>                 $suffix = lang("when you leave work");
>                 $togval = "O";
>                 break;
>                default:
>                 $stat_word = lang("Out");
>                 $action = lang("Check In");
>                 $suffix = lang("while you are at work");
>                 $togval = "I";
>                 break;
>         }
>         // This part will display basically a form with only a submit
>         // button with the appropriate text to set in or out status.
>         ?>
>
>
>
>Reiner Jung (address@hidden) wrote*:
>>
>>Hello,
>>
>>I run two servers, one with Debian and one with RH 8.
>>All updated via CVS today.
>>
>>On the RH Machine, when I select the Timesheet start page I receive the
>>follow error.
>>
>> db->query("select inorout from phpgw_ttrack_emplyprof" . " where id= "
>>. $uid); $GLOBALS['phpgw']->db->next_record(); $status =
>>$GLOBALS['phpgw']->db->f("inorout"); $prefix = lang("you are currently
>>checked"); switch ($status) { case "I": $stat_word = lang("In");
>$action
>>= lang("Check Out"); $suffix = lang("when you leave work"); $togval =
>>"O"; break; default: $stat_word = lang("Out"); $action = lang("Check
>>In"); $suffix = lang("while you are at work"); $togval = "I"; break; }
>>// This part will display basically a form with only a submit // button
>>with the appropriate text to set in or out status. ?>
>>
>>Thank you
>
>
>
>_______________________________________________
>Phpgroupware-developers mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]