| | |
mysql and php - some clarity please
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: May 2009
Posts: 15
Reputation:
Solved Threads: 1
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.
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.
0
#2 34 Days Ago
An associative array is one with named keys.
Ex.
In a mysql result, they are the column names.
Ex.
PHP Syntax (Toggle Plain Text)
array( 'name' => 'Name here', 'other' => 'Other data here' );
In a mysql result, they are the column names.
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
![]() |
Similar Threads
- Saving a date in MySQL with PHP (PHP)
- How do I install Apache, MySQL, PHP on Linux? (PHP)
- [JOB] MySQL/PHP Engineer, Los Angeles, CA (Web Development Job Offers)
- Experience the FASTEST MySQL and PHP Hosting | Starting @ $2.50 per month (Web Hosting Deals)
- FASTEST MySQL and PHP Hosting, [Seeing is Believing] 75% OFF On Any Plan (Web Hosting Deals)
- Hardware Requirements for Fedora, Apache, MySQL and PHP on one machine (*nix Hardware Configuration)
- MySQL and PHP hosting (Linux Servers and Apache)
Other Threads in the PHP Forum
- Previous Thread: To upload system to server and share domain with existing company website
- Next Thread: View one article
| Thread Tools | Search this Thread |
ajax api array autocomplete aws beginner c# calendar class cms code curl database display downloader dropdown duplicates eclipse email error errorlog execution files flash flex form forms forum gentoo google head html ibm image include innodb insert java javascript jquery js keywords kickfire lamp limit link links linux login mail mariadb memmory memory menu migrate mimic multiple mysql mysqlquery object oop open oracle php post programming protocol query radio recourse remote script search security select seo server sharepoint simple simpledb sms spam speed sql subscription sun syntax table tutorial up-to-date upload user variable vbulletin video virus web window youtube zend







