กรุณาปิด AdBlock!

Cancel your adBlock please.

ขยายหน้าเว็บRegister Login
 โฆษณา
หน้า: [1]  ลงล่าง
  พิมพ์  
topic

mysql_fetch_?? array, assoc, row อะไรไวกว่ากัน??  (อ่าน 7762 ครั้ง)

ไอที
« เมื่อ: 13, 05 2008, 09:58:01 PM »
"mysql_fetch_array"

  มีข้อสรุปนะอันนี้...แต่ยังไม่บอก
เด็กไอทีคลับ
เด็กไอทีตัวพ่อ
เด็กไอทีคลับชั้นเซียน
*
พลังความคิด 89
กระทู้: 3,536
บันทึกการเข้า
ไอที
« ตอบ #1 เมื่อ: 10, 09 2009, 10:51:36 PM »
ขอบคุณ ง่ะ
athikom
เด็กไอทีคลับหน้าใหม่
*
พลังความคิด -1
กระทู้: 18
เว็บไซต์
บันทึกการเข้า

http://www.kundham.com link เว็บไซต์คุณธรรม แบบทดสอบธรรมะออนไลน์
ไอที
« ตอบ #2 เมื่อ: 17, 01 2010, 11:04:57 AM »
mysql_fetch_array ? Fetch a result row as an associative array, a numeric array, or both
อ้างถึง
Return Values
Returns an array of strings that corresponds to the fetched row, or FALSE if there are no more rows. The type of returned array depends on how result_type is defined. By using MYSQL_BOTH (default), you'll get an array with both associative and number indices. Using MYSQL_ASSOC, you only get associative indices (as mysql_fetch_assoc() works), using MYSQL_NUM, you only get number indices (as mysql_fetch_row() works).

If two or more columns of the result have the same field names, the last column will take precedence. To access the other column(s) of the same name, you must use the numeric index of the column or make an alias for the column. For aliased columns, you cannot access the contents with the original column name.


mysql_fetch_assoc ? Fetch a result row as an associative array
อ้างถึง
Return Values
Returns an associative array of strings that corresponds to the fetched row, or FALSE if there are no more rows.

If two or more columns of the result have the same field names, the last column will take precedence. To access the other column(s) of the same name, you either need to access the result with numeric indices by using mysql_fetch_row() or add alias names. See the example at the mysql_fetch_array() description about aliases.


mysql_fetch_row ? Get a result row as an enumerated array
อ้างถึง
Return Values
Returns an numerical array of strings that corresponds to the fetched row, or FALSE if there are no more rows.

mysql_fetch_row() fetches one row of data from the result associated with the specified result identifier. The row is returned as an array. Each result column is stored in an array offset, starting at offset 0.


เด็กไอทีคลับ
เด็กไอทีตัวพ่อ
เด็กไอทีคลับชั้นเซียน
*
พลังความคิด 89
กระทู้: 3,536
บันทึกการเข้า
หน้า: [1]  ขึ้นบน
  พิมพ์  
 
กระโดดไป: