0

Hi everybody,

I have problem in meetnewpeopleid

meetnewpeopleid value is null

how can i getid?

anybody plz help me

class meetnewpeopleActions extends sfActions
{


public function executePlanpage(sfWebRequest $request)
{


    $meetnewpeopleId = $request->getParameter("meetnewpeopleId");
    var_dump($meetnewpeopleId);
    $meetnewpeople_obj= Doctrine_Query::create()->select('m.personal_id,m.photo,m.plantitle,m.country_id,m.zone_id,m.city,m.plantype,m.about_plan,m.date,m.what,m.where_go,m.time')->from('meetnewpeople m')->where("id = ?" ,$meetnewpeopleId) ;
    $meetnewpeople=Doctrine_Core::getTable("Meetnewpeople")->find($request->getParameter('meetnewpeopleId'));
    $result = $meetnewpeople_obj->fetchArray();

    $this->meetnewpeoples = $result;
     var_dump($result);
}
}
3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by vibhaJ
0

Sorry not enough information.

We have no idea how your bespoke function works.

For trouble shooting though, bypass the whole function and go straight to the console window. Connect to your db and type in that query, does it still return null?

If so there is something wrong with your query rather than the php. If it doesn't return null there is something wrong with your php.

Come back after you've done this.

0

From getParameter function it seems meetnewpeopleId should be passed to url.
i.e. yourpage.php?meetnewpeopleId=177

Are you passing meetnewpeopleId in url or any object?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.