ok so i fixed a few things,everything is working but for the incrementation part, here's that part of topic.php that fisrt get an array of id and then display the row information thanks to "function" which is working properly :
$x = 0;
$v_query = "SELECT id FROM mytable WHERE category ='v' ORDER BY RAND()";
$rowcase = mysql_query($v_query);
while($id = mysql_fetch_row($rowcase)){
function($id[$x]);
if($_POST['queue']==1)
$x++;
}
here's the code for the next button in my flash file, myVars is a LoadVars object in the mainframe that display the variables from the php.As mentioned previously by Musicman, I changed the getURL by a LoadVars.sendAndLoad() method so that the whole script is not run everytime the button is pressed:
on(press){
myData = new LoadVars();
myData.queue = 1;
myData.sendAndLoad("topic.php", myVars);
}
on(release){
myData.queue=0;
}
So far I am able to get the first row from Mysql with the coresponding id, but I don't get any responses when I clicked on the next button. I would like to get the next row from my Mysql.
My problem is really in how to get the next row to be displayed.
I can't get it to work, maybe there's a better way, any suggestion would be gladly taken.