Unable to assign value to php array -
i creating array in php assigning values retrieved database. when print array displaying array output , not contents. retrieve values mysql.
$resultset=mysql_query("select isbn tbl_book publisherid='$publisherid'"); /***retrieve books*****/ while($resultisbnarray = mysql_fetch_assoc($resultset)) { $isbn = $resultisbnarray["isbn"]; $myarr[]=$isbn; } echo $myarr
echo
ing array prints "array". need pick individual values in array (echo $myarr[0]
) or use print_r()
.
Comments
Post a Comment