Ok… I kinda need to be able to return stuff to flash in a more readable format. Can I possibly strip the array of commas and convert it to a string? Should I try to parse it in flash?
I kinda need a basic string/array parsing tutorial.
Heres what I get in flash:
Joe,Heloooooooooooo!!!! *example text*
,
,Joe,Heloooooooooooo!!!! *example text*
,
,Joe,Heloooooooooooo!!!! *example text*
,
,Joe,Yo wazzupp??? Whats going down? *example text*
,
,John Doe,Yo wazzupp??? Whats going down? *example text*
,
,John Doe,Yo wazzupp??? Whats going down? *example text*
,
This is what I'm aiming for>>>
Joe
Heloooooooooooo!!!! *example text*
- - - - - - - - - - - - - - - - - - - - -
Joe
Heloooooooooooo!!!! *example text*
- - - - - - - - - - - - - - - - - - - - -
Joe
Yo wazzupp??? Whats going down?
*example text*
- - - - - - - - - - - - - - - - - - - - -
Not exactly very orderly… Heres my php code:
$sql = 'SELECT * FROM shoutbox ORDER BY id DESC';
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
foreach($row as $key=>$value){
if ($key != id ){
array_push($myArray, $value);
}
}
array_push($myArray, "
");
}
return $myArray;