| 
	
 | 
 Posted by noone on 02/23/06 20:56 
monomaniac21 wrote: 
> Thanks noone, how can you convert a text field into an array? or how 
> can you create an array field in mysql? 
>  
 
 
go to the docs and lookup arrays, explode 
 
Two sites that will help you immeasurably!! 
	www.mysql.com 
	and http://us3.php.net/manual/en/funcref.php 
		then use the search feature 
 
 
 From the docs: http://us3.php.net/manual/en/function.explode.php 
// Example 1 
$pizza  = "piece1,piece2,piece3,piece4,piece5,piece6"; 
 
// or you can get the field from a database - coding left to 
// the OP - you learn better that way... 
 
$pieces = explode(",", $pizza); 
echo $pieces[0]; // piece1 
echo $pieces[1]; // piece2
 
  
Navigation:
[Reply to this message] 
 |