Hi everyone, I have created a twitter app to auto post to a number of twitter accounts.
The auto tweet works great - but for one thing I am stuck on...
I am trying to add a hashtag # (#) to the tweet but for some reason I'ts not working.

Do I need to use urlencode? im not how that would work.

Here is the working auto tweet - What I am trying to do is add the hashtag before $wastteam
So the tweet would look like this #Everton

<?php twitter_post($wastuname . ' ' . has . ' ' . just . ' ' . entered . ' ' . a . ' ' . competition . ' ' . to . ' ' . win . ' ' . a . ' ' . $wastteam . ' ' . season . ' ' . ticket . ' ' . at . ' ' .$link) ?>

If anyone could help that would be great thanks -

Member Avatar for diafol

Impossible to say unless we can see the code. ALso you don't need all that concatenation:

<?php twitter_post("$wastuname has just entered a competition to win a $wastteam season ticket at $link");?>

will work

Hi thanks -

I have tried using
$hashtag=htmlentities("'.&#35;.'");
$hashtags=htmlentities("'.#.'");
$hashtagss=htmlentities("&amp;#35;");

But still not getting the # symbol

Member Avatar for diafol

We have no way of knowing how you're passing this info or how it's being used. Show your code.

Thanks for your reply, looks like I going about it the wrong way :)

I added the # before $wastteam and bingo -
Thanks buddy -

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.