Follow up question:
$query = mysql_query("SELECT * FROM banners ORDER BY orderr ASC LIMIT 3");
while($row = mysql_fetch_array($query)) {
echo 'fadeimages[' . $row['order'] . ']=["' . $row['banner'] . '", "' . $row['link'] . '", ""]';
}
//which prints:
fadeimages[0]=["http://bannerlink1", "http://link1", ""]
fadeimages[1]=["http://bannerlink2", "http://link2", ""]
fadeimages[2]=["http://bannerlink3", "http://link3", ""]
//its the 3 numbers ^ thats important, not ^^^^ that stuff
Everything works fine, but the $row['order'] (or "[#]") seems unessisary to me; i know the script needs it to work but, its just another field the user has to fill in a form, and could mess up. so. my question to you is, is there anyways for a php while loop to produce unique incremental numbers (0, 1 and, 2) to results as it spits them out?