I need to get a file name from a jpg without the extension to use as id in a span tag. Here's the code I'm using:
<?php
$result = mysql_query("SELECT * FROM $data_sales_earrings ORDER BY id ASC");
while($row = mysql_fetch_array($result))
echo "
<span id=\"need file name from jpg front\"><img src=\"image/sale/".$row['image_item_front']."\" width=\"326\" height=\"435\" /></span>
<span id=\"need file name from jpg back\"><img src=\"image/sale/".$row['image_item_back']."\" width=\"326\" height=\"435\" /></span>
";
?>
The jpgs are image_item_front & 'image_item_back. I know how to strip the extension, but can't get it into the array.