Re: still stuck / newbie, simple problem / question
| From: | - \[ Paul Ferrie \] - | Date: | Wed, 30 Apr 2003 11:04:56 +0000 |
| Subject: | Re: still stuck / newbie, simple problem / question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145756@lists.php.net to get a copy of this message | ||
yup both of you are right.
thanks for the quick replys guys
:)
"- -" <info@innovativedesigns.org.uk> wrote in message
news:20030430104320.30718.qmail@pb1.pair.com...
> I should have mentioned before, I am getting the string information from
an
> array built from the result sent back from DB.
>
> $query2 ="SELECT topic, lastPost FROM forumThreads WHERE userID =
$userID";
> $result2 = @mysql_query($query2);
>
> $user = @mysql_fetch_array($result2);
>
> $topic = $user['topic']substr($topic, 0, 20)."..."; <<< this
> line dosent
> work
> //what i currently have
> $topic = $user['topic'];
> I want to shorten 'topic' before it is output.
>
> $lastPost = strftime("%m-%d-%y %I:%M %p", $user['lastPost']);
>
> Can some help me with this please.
>
>
>
>