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 

echoing array prints "array". need pick individual values in array (echo $myarr[0]) or use print_r().


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -