Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

remove .jpg from results?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Postby Xerpher » Thu Mar 27, 2003 7:12 am

If your asking for what I think your asking forum, search or just read through these forums because I answered this question VERY recently.
Xerpher
New php-forum User
New php-forum User
 
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada

Postby Redcircle » Thu Mar 27, 2003 11:47 pm

If you know that it is always going to be a jpg and all you want to do is remove the .jpg at the end you can use the str_replace() command

Code: Select all
$picFile = str_replace('.jpg','',$row2['picFile']);
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.