Thanks mate. It's just the way it looks. they're actually two
single quotes
' '
not one double.
It doesn't make a difference what kind of quotes you use,
does it? I
typically use ' to designate when I'm starting a string, but
other than
that, when looking for values, I think I tend to migrate
between the two b/c
I didn't think it made a difference.
Does it?
"Dave Buchholz" <forums@REMOVETHISi-cre8.co.uk> wrote
in message
news:edsbc5$62o$1@forums.macromedia.com...
> Jon,
>
> your missing a " in the first line it should read
> if ($row_rsFrontPage['newsShortDesc'] != "''){//if short
description
> exists
>
>
> --
>
> Dave Buchholz
> I-CRE8
> www.i-cre8.co.uk
> Skype ID: I-CRE8
> "crash" <crash@bcdcdigital.com> wrote in message
> news:eds9ub$485$1@forums.macromedia.com...
>> Man, oh man. If Jon missed any more forests for the
trees....
>>
>> This is what I needed up doing, and it is much
easier, prettier, etc.
>> etc. Looks (in my testing) to work perfectly.
>>
>> if ($row_rsFrontPage['newsShortDesc'] != ''){//if
short description
>> exists
>> $fpCont = $row_rsFrontPage['newsShortDesc'];
>> if(strlen($fpCont) > 350){//if descrp is greater
than 350
>> $fpCont = truncate_string($fpCont, 350);}
>> $fpCont = ltrim($fpCont, "<p>");//remove any
preceding <p> if exists
>> $fpCont = rtrim($fpCont, "</p>");//same for
*last* </p> tag, not *all*
>> </p>
>> $fpCont =
'<p>'.$fpDateEdited.$fpCont.' <a
>> href="news.php?cid='.$fpID.'">Full
Story</a></p>'; //complie content and
>> get on your way.
>>
>> Gads, but that was so simple. What a maroon! ;o)
>>
>> Thanks guys for all your help, and if you saw this
before I did, thanks
>> for not saying anything. :O) That was one that while
I feel silly for
>> missing the obvious, will hopefully help my process
in the future.
>>
>> Jon
>>
>> "crash" <crash@bcdcdigital.com> wrote in
message
>> news:ecq2t3$2h4$1@forums.macromedia.com...
>>>I am looking to add my date to the beginning of
my articles. Previously,
>>>I was using the string replace function to look
for the begininng of my
>>>paragraph and then place the date in front of
that. Bad Jon! I forgot
>>>that any article with multiple paragraphs would
then have multiple dates.
>>>
>>> $artContent = str_replace('<p>',
'<p> '.$artDateEdited.' - ',
>>> $artContent);
>>>
>>> So, what I am looking for is how do I do a
string replaceon just the
>>> first paragraph?
>>>
>>> --
>>>
>>> TIA,
>>>
>>> Jon Parkhurst
>>> PriivaWeb
>>>
http://priiva.net.
>>>
>>
>>
>
>