I am want to pass an array as a parameter of a jquery function. When I alert the array I get function Array() {
[native code]
}
this error I tried this in php. Here Sql functions are self written. They are good for sure. And throughout this loop I am printing the data from data table. Which works. Now I want to show other thing when button is clicked.
$i=0;
for(;$i<Sql_Num_Rows($result);$i++) {
$row= Sql_fetch_array($result);
$j = 0;
$data[$i][$j++] = $row['user_id'];
$data[$i][$j++] = $row['first_name'];
$data[$i][$j++] = $row['last_name'];
$data[$i][$j++] = $row['user_address'];
$data[$i][$j++] = $row['user_phone'];;
$data[$i][$j++] = "<button onclick='update_user_info($row)'>detail</button>";
}
And this in javascript
function update_user_info(user_info)
{
alert(user_info)
}
can anyone help me how can I get the array with value. array has value like $row['name']
,$row['email']
..... I need these values. Please help