PDA

Click to See Complete Forum and Search --> : [RESOLVED] from query into array?


Justa Lol
Jan 11th, 2010, 11:22 AM
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

SambaNeko
Jan 11th, 2010, 11:45 AM
$sql_result = mysql_query("SELECT myField FROM myTable LIMIT 1");
$string_with_spaces = mysql_result($sql_result,0);
$myArray = explode(" ",$string_with_spaces);


....?

Justa Lol
Jan 11th, 2010, 02:47 PM
wow what a bummer of me... thanks