I am currently setting up a sort of flash game.
I’ve managed to get data from a php file to display in my flash file which is ideal.
I also have a php script that will randomly display a value form an array.
The bit I’m confused about is getting a php file to select the data I need form the database and show it as an array so that my php file will randomly display one value which will in turn be read into the flash file and displayed.
Can anyone tel me how I set up a script to select data from a mysql table and put it into an array please?
I think its something fairly easy to do I’m just driving myself crazy trying to work it out!!
Sorry Anthony I think I’m being a bit thick with this. I can’t get your code to work and I think it might be due to the version of php the server is running. I’m getting the following error:
Fatal error: Call to undefined function: mysqli_connect()