GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php syntax question. Can you help? (https://gfy.com/showthread.php?t=259887)

jovigirl 03-27-2004 03:06 PM

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?

:helpme

Thanks

BradM 03-27-2004 03:07 PM

PHP Code:

$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count); 


Try that

jovigirl 03-27-2004 03:11 PM

That works, thx !

I think I had some trouble with the ""

woj 03-27-2004 03:53 PM

That php highlighter is terrible on gray background, how can anyone read that?

BradM 03-27-2004 03:54 PM

Quote:

Originally posted by woj
That php highlighter is terrible on gray background, how can anyone read that?
You can't. you have to copy/paste.


All times are GMT -7. The time now is 12:04 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123