Results 1 to 3 of 3

Thread: [RESOLVED] from query into array?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Resolved [RESOLVED] from query into array?

    title says it all... how can i load from query and make it split by a space and put it into an array?

    sorry if you don't get it but this is the best way i can explain xD

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: from query into array?

    Code:
    $sql_result = mysql_query("SELECT myField FROM myTable LIMIT 1");
    $string_with_spaces = mysql_result($sql_result,0);
    $myArray = explode(" ",$string_with_spaces);
    ....?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: from query into array?

    wow what a bummer of me... thanks

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