Help!!! I have two problems...one is more critical than the other.
First: I gotta bad error, and I can't figure it out. I looked in these files to see if I could guess the problem, and of course...I couldn't.
Can someone tell me how to fix this?
[codebox]Warning: set_error_handler() expects argument 1, 'error_handler', to be a valid callback in /home/ezlinkwe/public_html/test5/include/dbcommon.php on line 113
Fatal error: Call to undefined function: postvalue() in /home/ezlinkwe/public_html/test5/login.php on line 38[/codebox]
Second: For some strange reason the the 1st part of my Last Actions section stopped working
Anybody out there see what I did wrong...This was working...it added two actions to the _last_actions table and displayed the result on the correct page...and now it will not add the actions to the _last_actions table.
1st part:
[codebox]global $conn;
//** select member id from members table ***
$strSelect = "select member_id from _members where username='".$_SESSION["UserID"]."'";
$rsSelect = db_query($strSelect,$conn);
$dataSelect = db_fetch_array($rsSelect);
$Action= "<a href=\"/test5/_members_view.php?editid1=".$dataSelect["member_id"]."\">".$_SESSION["UserID"]."</a>";
$Action.= " added the comment ";
$Action.= "<a href=\"_image_comments_list.php\">".$values["commentname"]."</a>";
$str = "insert into _last_actions (username,action,dateofaction) values ('".$_SESSION["UserID"]."','".$Action."','".now()."')";
echo $str;
$db_exec($str,$conn);[/codebox]
2nd Part:
[codebox]global $conn;
$str = "select * from _last_actions order by dateofaction desc limit 10";
$rs = db_query($str,$conn);
while ($data = db_fetch_array($rs))
echo $data["dateofaction"].": ".$data["action"]."
";[/codebox]