Results 1 to 4 of 4

Thread: [Resolved]mysql to array

Threaded View

  1. #1

    Thread Starter
    Fanatic Member stickman373's Avatar
    Join Date
    Mar 2001
    Location
    MA
    Posts
    909

    [Resolved]mysql to array

    Ok I make a query in mysql:

    "SELECT * FROM ibf_moderators WHERE forum_id='".$class->forum['id']."'"

    and then I want to load the each of the id column values from ibf_moderators in my $cc_array.

    $cc_array = array();

    while( $r = mysql_fetch_array($result2))
    {
    ADD VALUE into the array here
    }

    How do I loop through my results adding the id column into my $cc_array?
    Last edited by stickman373; Mar 9th, 2003 at 11:48 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width