Hi NogDog,
I tried your code to see what's going on and these are my results:
Notice: unserialize() [function.unserialize]: Error at offset 50 of 50 bytes in C:\Inetpub\fullfocus\AngelHouse\test.php on line 13
Notice: $interests3 is not an array: in C:\Inetpub\fullfocus\AngelHouse\test.php on line 21
Notice: unserialize() [function.unserialize]: Error at offset 50 of 50 bytes in C:\Inetpub\fullfocus\AngelHouse\test.php on line 13
Notice: $interests3 is not an array: in C:\Inetpub\fullfocus\AngelHouse\test.php on line 21
Notice: unserialize() [function.unserialize]: Error at offset 51 of 50 bytes in C:\Inetpub\fullfocus\AngelHouse\test.php on line 13
Notice: $interests3 is not an array: in C:\Inetpub\fullfocus\AngelHouse\test.php on line 21
Notice: unserialize() [function.unserialize]: Error at offset 37 of 50 bytes in C:\Inetpub\fullfocus\AngelHouse\test.php on line 13
Notice: $interests3 is not an array: in C:\Inetpub\fullfocus\AngelHouse\test.php on line 21
Notice: unserialize() [function.unserialize]: Error at offset 50 of 50 bytes in C:\Inetpub\fullfocus\AngelHouse\test.php on line 13
Notice: $interests3 is not an array: in C:\Inetpub\fullfocus\AngelHouse\test.php on line 21
This is the new script.
<?php
error_reporting(E_ALL);
require_once ('mysql_connect.php');
$query="SELECT * FROM app_vol";
$result=mysql_query($query);
if ($result) {
while($row=mysql_fetch_array($result, MYSQL_ASSOC))
{
if(isset($row['interests']))
{
$interests3 = unserialize($row['interests']);
if(is_array($interests3))
{
foreach($interests3 as $test)
echo "$test,";
}
else
{
user_error("\$interests3 is not an array: $interests3");
}
}
else
{
user_error("\$row['interests'] is not set<br><pre>".print_r($row, 1)."</pre>\n");
}
}
}
?>
[code=php]