Use ltrim().
$image = ltrim($data->JPG_Name);
echo $image;
Or use trim()
Or
http://www.php.net/manual/en/ref.strings.php
Dan
On Oct 28, 2003, at 4:11 PM, lgs@sarreid.com wrote:
When I select data from my data base I have spaces on the lead side for example the data that is stored is " 33.jpg". Spaces included, exclude the quotes, quotes are example only to show the spaces.
I would like to remove these spaces. Is there a way to do this?
Can it be done in the query?
Any help would be appreciated.
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax : (252) 237-1592
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php