I have this code:
<?php
mysql_connect(HIDDEN)
or die(mysql_error());
mysql_select_db("wow")
or die(mysql_error());
$data = ("SELECT Data FROM wa_guilds") or die(mysql_error());
print "<table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<th>Name:</th> <td>".$info['name'] . "</td> ";
Print "<th>Level:</th> <td>".$info['level'] . " </td></tr>";
}
print "</table>";
?>
But I'm getting this error: Warning: mysql_fetch_array() expects parameter 1 to be resource, string given in blah blah
It's stored as a blob in a row called Data. I'm assuming I have to unserialize it, but I don't really know how.
I'm using this library if it helps any. https://sourceforge.net/p/wowarmoryapi/home/Home/ There's no documentation on how to get the data once it's been cached in the db.