I have a quick question. I want to be able to fetch an array from mysql, and echo it out. I can do that, but instead of using something like this:
echo "$usercars[1]";
I want to be able to do something like this:
echo "$usercars[user_name]";
Is that possible? Sorry if this has been gone over before. I tried searching but found nothing.
edit: I wanted that array element to correspond to a specific record which I pulled from a database. So if I made database structure changes down the road, I wouldn't have to change the scripts.