| | |
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 Oct 24th, 2009
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 |
access ajax ajaxcode ajaxhelp amf api array autoincrement beginner c# cakephp cheap class cms curl database dehasher delete developer display dropdownlist ecommerce email files flash form forms gaming glassfish google html ibm image images include innerjoins insert java javascript joomla jquery keywords lamp limit link linux login mail malfunctioning menu mobile msqli_multi_query multiple multipletables mysql mysqlquery oop oracle persist php post programming quality query radio recursiveloop remote restore root rss script search searchmonkey security select server sms smtp soap source spam sql sqlserver sun support! survey system table trouble tutorial upload video web webdesign website wpf xml ydn youtube zend







