Solved

<?php echo on <a href - need help people

Posted on 2011-09-22
1
368 Views
Last Modified: 2012-05-12
How can i make the following code to work?

I use a .php file and some of the code is,

echo '<a href="http://www.textlink.com/"><?php echo $theData; ?></a>';

Is not display nothing on the anchor text, but i assure you the variable $theData is not an empty text.
0
Comment
Question by:parpaitas
1 Comment
 
LVL 3

Accepted Solution

by:
mykde earned 500 total points
ID: 36582970
Try this:
echo '<a href="http://www.textlink.com/">'.$theData.'</a>';

Open in new window

0

Featured Post

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now