Thanks Amit, I manage to do that,
but I have another problem,... Once user is a member now I need that
"Join" button replaced with "Leave" and I can not make that php
statement.
e.g. ...? ? ?
the table I have is
id int(11) UNSIGNEDNo auto_increment
Hi.
I think the line
if(!$this->GroupMember->save($this->$member))
should be
if($this->GroupMember->save($member))
Hope this helps.
Amit Badkas
PHP Applications for E-Biz: http://www.sanisoft.com
On Fri, Jan 7, 2011 at 10:22 AM, chris...@yahoo.com wrote:
> if(!$this->GroupMember->save($t
Hi guys,
Trying to create members join function and need to save and update in
3 tables. Here is what I have, but its not working, it's not adding to
GroupMember table... any clue...?
function join($id)
{
if(!($user = $this->User->findById($this->user['id'])))
{
$this->flash('e