one last question (i hope!)
so I have a file that a user uploads...I insert the name of the file into a mysql database, but not the file itself. I want to seperate the filename from the file extension. so i'm thinking I can use something like list ($name, $ext) = explode (".", $userfile);
my question is....when I retrieve the results using a SQL query....like, "SELECT * FROM filemanager WHERE title LIKE '$title'"
is it possible to slipt the result i get back for filename into it's name and extention? When I list the files, I list them like this
for ($x=0; $x < mysql_num_rows($resultID2); $x++)
{
$row = mysql_fetch_assoc($resultID2);
print "<center><tr>";
print "<td>" . $row[title] . "</td>";
print "<td><a href=" . $row[userfile] . ">" . $row[userfile] ."</a></td>";
print "<td>" . $row[filesize] . "</td>";
print "<td>" . $row[date] . "</td>";
print "</tr>";
}
so would something like list($name, $ext) = explode (".", $row[userfile]; work? That doesn't seem right to me..