How to fetch comments field from MySQL Table?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dhimok
    New Member
    • Jul 2010
    • 3

    #1

    How to fetch comments field from MySQL Table?

    Is it possible to fetch "Comments" field of a Mysql database table row with PHP?

    I know I can fetch 'Field', 'Type', 'Null' 'Default', 'Extra' with 'DESCRIBE table'

    Thanks in advance!
    Attached Files
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I don’t think so, although an SQL-dump should also contain comments.

    comments are just that—comments, even in PHP comments are not parsed.

    Comment

    • JKing
      Recognized Expert Top Contributor
      • Jun 2007
      • 1206

      #3
      Code:
      $result = mysql_query("SHOW FULL COLUMNS FROM table FROM database");
      Where table is your table and database is your database. Database is optional if you have already used mysql_select_db you don't need it.

      Comment

      Working...