2006-03-24, 03:59 AM
Well, I would like save in SQL, the path and name of images in SQL, I dont know exactly, if this can cause some problem caching
Doing the "SELECT" in the table indicated and the WHILE will save the paths and name of files into a ARRAY
Something as this:
$result = mysql_query ("SELECT * FROM images ORDER BY ID");
while($row = mysql_fetch_array($result))
{
$images[]=$row[path];
}
Doing the "SELECT" in the table indicated and the WHILE will save the paths and name of files into a ARRAY
Something as this:
$result = mysql_query ("SELECT * FROM images ORDER BY ID");
while($row = mysql_fetch_array($result))
{
$images[]=$row[path];
}