EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   AA PHP Problem (https://www.eqemulator.org/forums/showthread.php?t=12644)

_OZZY_ 03-24-2004 04:48 PM

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]

_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.


All times are GMT -4. The time now is 12:59 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.