Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
Menu
Query Result « MySQL Database « PHP
PHP
MySQL Database
Query Result
1.
Get column alias
2.
From result row get the table name
3.
Use mysql_result function to get query result
4.
Store query result in an array
5.
Use for loop to read all query result
6.
use Column name in select statement as the variable name
7.
Store query result in an Object
8.
Store query result in an associate array
9.
Get returned row count