Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Reply to Thread

Post a reply to the thread: php mysql query results to array foreach?

Your Message

Click here to log in

How many letters in the word Rabroad

 
 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Rate Thread

You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.

Topic Review (Newest First)

  • 10-05-2011, 11:00 AM
    Alexander

    php mysql query results to array foreach?

    Really need help with a php coded mysql query.

    Basically like this---
    Link = localhost, user, password
    query = SELECT * FROM posts

    Now I need to results to go into an array or something so I can use a foreach to print:
    <tr>
    <td>$displayname says, $post</td>
    </tr>

    How would the foreach look? Really stuck...

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •