Log in

View Full Version : AA PHP Problem


_OZZY_
03-24-2004, 04:48 PM
I'm trying to write a little webpage to display a character's AA info from the MySQL database. Here is what I have so far:


<?php
mysql_connect("server","username","password");
@mysql_select_db("eq");
$query="SELECT * FROM character_ WHERE name = 'testchar'";
$result=mysql_query($query);
$object=mysql_fetch_object($result);
// Something is wrong with the following
$x->aa=unpack(@344/V122, $object->profile);
?>


What I am wanting to do is to place the aa_array into an array that can be referenced easily. For example, $the_array[1] will return the current Innate Strength value. Can someone give me a little push in the right direction?[/code]

_OZZY_
03-25-2004, 04:38 AM
Nervermind guys, I think I have it (won't know for sure until AAs are working again). It took a little bit of digging, but I found the AA_Array struct that I was looking for. I also realized very quickly that I was making it ALOT harder than it actually needs to be.