944,028 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 723
  • PHP RSS
Oct 24th, 2009
0

mysql and php - some clarity please

Expand Post »
Please could someone just clear up, or point me to the right thing to read regarding mysql and php.

Once you have made a query and saved it to results, I understand that the query accessed with a number of functions to extract that, such as mysql_fetch_array() and so on.

It returns an "associative array". What does that mean. I seem to always get it working just by trial and error, but I don't actually understand it.

I don't really like to ask questions like this on forums because it seems like I am lazy, but I also can't sit an read endless tutorials hoping that somewhere I will get it. But I am really happy to read tutorials, even if they are fairly verbose, as long as that connection is make clear to me.
Similar Threads
Reputation Points: 33
Solved Threads: 13
Junior Poster in Training
Namibnat is offline Offline
82 posts
since May 2009
Oct 24th, 2009
0
Re: mysql and php - some clarity please
An associative array is one with named keys.
Ex.
PHP Syntax (Toggle Plain Text)
  1. array(
  2. 'name' => 'Name here',
  3. 'other' => 'Other data here'
  4. );

In a mysql result, they are the column names.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
kkeith29 is offline Offline
1,315 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: To upload system to server and share domain with existing company website
Next Thread in PHP Forum Timeline: View one article





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC