browser links

foreach($orders as $orders){
echo '
<a href=\'
https://sellercentral-europe.amazon.com/gp/orders-v2/details?ie=UTF8&orderID='
.$orders['orderid'].'\'>'.$orders['orderid'].'</a>'
;

echo '
<a href="
https://sellercentral-europe.amazon.com/gp/orders-v2/details?ie=UTF8&orderID='
.$orders['orderid'].'">'.$orders['orderid'].'</a>'
;

}


want to make html href links


this code is just making
<a href=' https://sellercentral-europe.amazon.com/gp/orders-v2/details?ie=UTF8&orderID=403-2206310-81283'>403-2206310-81283</a> <a href=" https://sellercentral-europe.amazon.com/gp/orders-v2/details?ie=UTF8&orderID=403-2206310-81283">403-2206310-81283</a>


i want links in html when run on a browser
LVL 1
rgb192Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hieloCommented:
change < to <
and also > to >
foreach($orders as $orders){
echo '
<a href=\'
https://sellercentral-europe.amazon.com/gp/orders-v2/details?ie=UTF8&orderID='
.$orders['orderid'].'\'&gt;'.$orders['orderid'].'</a>'
;

echo '
<a href="
https://sellercentral-europe.amazon.com/gp/orders-v2/details?ie=UTF8&orderID='
.$orders['orderid'].'"&gt;'.$orders['orderid'].'</a>'
;

}

Open in new window

0
hieloCommented:
I meant:
change &lt; to <
and also &gt; to >

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
You need to use a text editor or HTML/code editor and change the HTML entities like < to the characters that are needed for the links to work.  HTML entities are character sequences used to display characters that HTML would otherwise use to decide how to display the page.  In your sample above, you need to replace < with < and > with > and your links will work in a web page.
0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Dave BaldwinFixer of ProblemsCommented:
Well, that ended up not working well.  I'll have to put spaces between the character sequences for this to display properly.  Change "& l t ;" to "<" and "& g t ;" to ">" in your code editor.
0
rgb192Author Commented:
applied your change

I am only getting links for urls that have no (null) orderid

0
rgb192Author Commented:
now it works... thanks
0
Dave BaldwinFixer of ProblemsCommented:
The $orders['orderid'] part is a PHP variable that needs to be filled in by the PHP code... which means this needs to be a *.php page, not a *.html page.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.