Inserting arrays, received from Flash Mx, to mysql using php
Posted: Sat Feb 07, 2004 1:04 pm
Hello,
I am currently trying to send arrays from flash to php. Sending is no problem. However I'm having problems linking the flash array to php variables. I am trying to receive the flash array like this:
or like this
and then I'm trying to insert this array into the mySql like so:
However I am having no luck. If anyone could give me any idea of what the normal procedure is, I would be deliriously happy. It is such a simple thing and I'm spending so much time on it,
thank you for your time in advance,
Mark Matthews
I am currently trying to send arrays from flash to php. Sending is no problem. However I'm having problems linking the flash array to php variables. I am trying to receive the flash array like this:
Code: Select all
<?php
for ($n = 0; $n < 29; $n++){
$header[$n] = $_POST['header' . $n];
}
?>Code: Select all
<?php
for ($n = 0; $n < 29; $n++){
$header[$n] = $_POST['header[$n]'];
}
?>Code: Select all
<?php
$ins_tab = "insert into piSavedGames values
(NULL,
'$user',
'$pass',
'$savedGameName',
'$newBookPageCount'"
.join(',', $header);
?>thank you for your time in advance,
Mark Matthews