Jump to content

how to return multiple items


iamnoguru
 Share

Recommended Posts

i need the values of all the field relid term1id, and term2id how do i do that.function makearray($result,$k){$num1 = mysql_numrows($result);echo "<br/><br/>result3 rows: ".$num1."<br/>";$relid = array();$term1id = array();$term2id = array(); for($i=0;$i<$num1;$i++) { $relid[$k][$i]=mysql_result($result,$i,"relationship_type_id");$term1id[$k][$i]=mysql_result($result,$i,"term1_id");$term2id[$k][$i]=mysql_result($result,$i,"term2_id");}$array =array($relid,$term1id,$term2id);return $array;}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...