View Single Post
Old 02-17-2008, 04:29 AM   #11 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

try trowing all the paths into a variable like

Code:
$variable = $path[1]."|".$path[2]."|".$path[3];

$query = "INSERT INTO somename(id,path) VALUES(null,'$path')";
$save = mysql_query($query);
your table structure should be

Code:
create table somename(id NOT NULL ,path mediumblob)
ENGiNE = myisam (or whatever u choose);

then you can do like

Code:
$query = "SELECT path FROM somename";
$output = mysql_query($query);

if(mysql_num_rows($output)) { 


while($row = mysql_fetch_assoc($output)) {

$data = $row['path'];
}

for($i=0;$i<count(data);$i++) {

echo $data[$i]."<br>";
}
}
let me know if this is what you needed, i got cared away :p
__________________
no signature set
sarmenhb is offline  
Reply With Quote