Equivalent Code in php to select a complete table (select * from table query)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skti89
    New Member
    • Jun 2012
    • 1

    Equivalent Code in php to select a complete table (select * from table query)

    My Sql Code

    Enter password:
    mysql>use database
    database changed;
    mysql>select * from table

    id name gender
    -----------------
    1 Robert Male
    2 Jack Male
    3 Julie Female

    Php Code:

    ........?!!!?
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    RTFM, sorry for this short answer.

    But there are docs, and http://php.net contants a lot of docs about PHP.
    If you search a little more your will find mysql_query which also contains examples of how to do this...

    Comment

    Working...