Service 'Test Operation' returns value, but service within application does not
i have service written in php. when right-click on service , test operation , pass value, returns correct object. when try same service call within application, returns object null values. what doing wrong?
here php code:
public function getuserbyfacebookid($fb){ $stmt = mysqli_prepare($this->connection, "select id, fb_id, name, birthday, firstname, gender, hometown, lastname, location, username, link, weight, targetweight, weekstraining, height, startdate, enddate, orientationdate, age users fb_id = ?" ); $this->throwexceptiononerror(); mysqli_bind_param($stmt, 'i', $fb); $this->throwexceptiononerror(); mysqli_stmt_execute($stmt); $this->throwexceptiononerror(); $rows = array(); mysqli_stmt_bind_result($stmt, $row->id,$row->fb_id,$row->name,$row->birthday,$row->firstname,$row->gender, $row->hometown,$row->lastname,$row->location,$row->username,$row->link,$row->weight,$row->targetweight, $row->weekstraining,$row->height,$row->startdate,$row->enddate,$row->orientationdate,$row->age); while (mysqli_stmt_fetch($stmt)) { $rows[] = $row; $row = new stdclass(); mysqli_stmt_bind_result($stmt, $row->id,$row->fb_id,$row->name,$row->birthday,$row->firstname,$row->gender, $row->hometown,$row->lastname,$row->location,$row->username,$row->link,$row->weight,$row->targetweight, $row->weekstraining,$row->height,$row->startdate,$row->enddate,$row->orientationdate,$row->age); } mysqli_stmt_free_result($stmt); mysqli_close($this->connection); return $rows; }
why work when test operation , not in actual application if i'm passing same value?
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment