|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
need some help with php
first off, let me say that i know absolutely nothing about php at all. i found this script and uploaded it, and for the most part, everything works, except the calendar function, something i would like to get working. what i am hoping is someone on here will know how i can go about fixing this, as it appears the devs have not answered someone else's plea for help on the same issue.
here is the site: http://www.thirddegreepc.com/sharepo...me=Appointment username: pcmech password: pcmech right now, its only viewer capabilities, but if someone who knows their way around this needs some more permissions, i would be happy to give those out on a pm basis. here is where i downloaded it from: http://sourceforge.net/project/showf...kage_id=142556 i appreciate any help someone can give me. overall, i like what i see in this app, and it would be perfect if i could get the appointment module working thanks craig
__________________
the universe is against this current wave of success i'm having. -johnny drama, entourage |
|
|
|
|
|
#2 | |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
I assume this error is what you are referring to:
Quote:
__________________
"It is the way of man to make monsters and it is the nature of monsters to destroy their makers." Last edited by blue60007; 01-22-2006 at 08:02 PM. |
|
|
|
|
|
|
#3 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
yea, thats it. i took a look, but since i have no idea what i would even be changing, i am afraid to do anything
line 116 is: Code:
if (($rs->RecordCount())>0) Code:
function getCheckItemFound($date) {
global $db,$table_appointment;
//$sql="SELECT * FROM $table_appointment WHERE usrId=$this->uid AND apmDateStart LIKE '$date%'";
$datex=$date."000000";
$sql="SELECT * FROM $table_appointment WHERE apmDateEnd >= '$datex' AND (apmDateStart LIKE '$date%' OR apmDateStart <= '$datex')AND usrId=$this->uid ";
//WHERE
//$db->debug=true;
$rs=$db->Execute($sql);
$this->rs=$rs;
if (($rs->RecordCount())>0) {
return TRUE;
} else {
return false;
}
}
craig |
|
|
|
|
|
#4 |
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
This, most likely, means the $rs is null. You could *try* changing the line to:
Code:
if (($rs) && ($rs->RecordCount())>0) {
|
|
|
|
|
|
#5 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
thanks faulkner, that fixed that problem, now when i try to add an appointment, it gives me an error saying "cannot add appointment." i thought we had it when that full calendar came right up with dates and everything.
there really aren't any error messages other than the one above. i am going to change the permissions on the user (pcmech, pcmech) so that you can add appts and what not, in case you want to mess around. otherwise, thanks for your help. i have already emailed the devs, and i intend to install core 3, just in case that one is ok. craig |
|
|
|
|
|
#6 |
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
Looks like there are a host of bugs with this program's release. Probably best to wait for the developers to release a patch rather than try to fix it yourself. If other people are posting the same problems you are having, the devs will take care of it.
|
|
|
|
|
|
#7 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
alright, thanks for your help. i will just be patient and wait
do you know of any other sharepoint clones like this? that is my ultimate goal, but other than this one, i don't know of any others thanks craig |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|