Solved

php a varianble no display

Posted on 2013-06-08
3
285 Views
Last Modified: 2013-06-08
<?php if ($mode == "updating") {echo <a href="login.php?id={$plugin_id}">click here</a> ?>

come up result => abc.com/login.php?id=

but work when <?php echo $plugin_id; ?>

this not working when variable inside hyperlink. expert pls help
0
Comment
Question by:john80988
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39232474
You need quotes around the string literals you are echoing:

<?php if ($mode == "updating") { echo "<a href=\"login.php?id={$plugin_id}\">click here</a>" } ?>

Open in new window

0
 

Author Comment

by:john80988
ID: 39232490
Parse error: syntax error, unexpected '<'
0
 

Author Closing Comment

by:john80988
ID: 39232495
yes it work, tq
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHPStorm debugging issues 1 21
What is the best PDF generator to use? 1 27
html input type 3 21
WP_Query multiple custom taxonomies 5 27
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…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

911 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