View Single Post
Old 03-27-2004, 03:06 PM  
jovigirl
Confirmed User
 
jovigirl's Avatar
 
Join Date: Apr 2003
Location: On the edge
Posts: 1,796
php syntax question. Can you help?

I have the following line of code

PHP Code:
        $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); 
It gives an output like the following:
69 pictures, last one added on March 07, 2004

The problem is that I want to remove the last part of the sentence, so it only displays the # of pics and nothing else, like this:
69 pictures.

but every time I try to remove the last part of the code it gives a parse error, (sorry such file doesn't exist) as output.

Any clues?



Thanks
__________________
ICQ :333-548-380
jovigirl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote