Thread: AA PHP Problem
View Single Post
  #1  
Old 03-24-2004, 04:48 PM
_OZZY_
Hill Giant
 
Join Date: Jan 2002
Location: Shreveport, Louisiana, USA
Posts: 129
Default AA PHP Problem

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:

Code:
<?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]
Reply With Quote