Arrays
Posted: Wed Mar 30, 2005 4:12 pm
A fairly dumb question I suppose, I have read the Php and MySQL sites but the examples they give don't really make sense to me. So anyone willing to help out by posting some example code, in as simple to follow format as possible? No clever little optimisations etc.
All I want is some code to read data from a database and put it into an array, I'm not sure how arrays work with PHP, Spectrum Basic yes, PHP no!
It's for a racing game I am coding (yes really, not joking here) and it needs to read in each drivers attributes, speed etc, then process them all to work out laptimes.
Does this make sense, if not I can post more details.
Thanks!
All I want is some code to read data from a database and put it into an array, I'm not sure how arrays work with PHP, Spectrum Basic yes, PHP no!
It's for a racing game I am coding (yes really, not joking here) and it needs to read in each drivers attributes, speed etc, then process them all to work out laptimes.
Does this make sense, if not I can post more details.
Thanks!