Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
i'm trying to add a QR to each of my sites with this code..
<img alt="QR code" src="http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=L|4&chl=<?php the_permalink(); ?>" width="150" height="150" />
but when i use a QR read on the code that it generate i only getting this
<?php the_permalink(); ?>
on the screen
someone how can help ?
PHP can't process the code since it's encoded.
Try:
<img alt="QR code" src="http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=L|4&chl=<?php echo urlencode(get_permalink()); ?>" width="150" height="150" />
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Here Is the link that I have tried
<a href="<?php echo $this->config->item('base_url') . 'index.php/back-office-panel/User_master#tab4' ?>">
But its not working
suggest answers.
I want to go to edit of that particulate section which is tab format.
Simple pass the uri parameter 'index.php/back-office-panel/User_master/tab4'
<a href="<?php echo $this->config->item('base_url') . 'index.php/back-office-panel/User_master/tab4' ?>">
PHP: Check the condition and echo the active class in tab.
if(isset($this->uri->segment(3)) && $this->uri->segment(3)=='tab4'){
echo 'active';
}
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I know it may sound stupid, but im trying to echo an image that i get his name from the url, i dont get anything only the alt text of the image.
This is my code
<?php
$url = $_GET["userpic"];
$DisplayImg = "./Imagenes/".$url.".jpg";
?>
<html>
<body>
<img src="<?php echo $DisplayImg; ?>" alt="Error" width="100%" height="100%" border="0" />
</body>
</html>
Dante,
Change the extension to .php instead of .html
If you want to run a php code into a .html refer to How do I add PHP code/file to HTML(.html) files?
Try this:
<html>
<body>
<img src="../Imagenes/<?php echo $_GET["userpic"]; ?>.jpg" alt="Error" width="100%" height="100%" border="0" />
</body>
</html>
If that still dont work then your path is wrong you can see it by adding
<?php echo "<a href='../Imagenes/".$_GET["userpic"].".jpg'>this should link to your image</a>"; ?>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to edit a social sharing plugin, to change the link/text show in the popups for twitter, etc..
Basically when it clicks to share on Twitter, it displays the page title and current URL on a thank you page, I want to customize it to display certain text and a different URL. Tried changing the &url=<?php echo $url; ?> part to &url=<?php http://www.urltext.com; ?> for example but doesn't work, how can I edit this so the syntax is proper?
case 'twitter':
?><a rel="external nofollow" class="ss-twitter" href="http://twitter.com/intent/tweet/?text=<?php echo $title; ?>&url=<?php echo $url; ?><?php if(!empty($twitter_username)) { echo '&via=' . $twitter_username; } ?>" target="_blank"><span class="ss-icon-twitter"></span><?php echo $twitter_text; ?></a> <?php
break;
The syntax is incorrect. You'll want to use:
&url=<?php echo 'http://www.urltext.com'; ?>
The url is a string; so you need to echo it as a string.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Friends,on the index page there is image for each tittle but these are not show.
this is web site : www.manisaihtiyac.com
I think there is a problem right this code :
<div class="yef_resim">
<a href="<?php the_permalink(); ?>">
<img src="<?php echo get_post_meta($post->ID, 'logo', true); ?>" border="0" />
</a>
</div>
Nothing is being returned by your function get_post_meta:
<a href="http://www.manisaihtiyac.com/?p=35">
<img src="" border="0">
...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
So I'm building a website and I'm attempting to reuse code for a scrolling photo banner.
I can mock-up everything pretty well within a strict html page. So I decided to move everything over to PHP to help make things more efficient and with the intent of eventually using MySQL in other content on the site. However, after I created my functions and began to plug everything in the photo banner disappeared. Everything else including the CSS displays beautifully. I went so far as to remove the CSS from the page to see if that was the problem. Unfortunately the images still refuse to show up. It was a direct copy->paste from the working HTML document so I'm not totally sure why the photos for the banner aren't appearing. Any advice or help would be great. Here's the code:
<html>
<style>
#import "honeysstyle.css";
</style>
<div id="container">
<div class="photobanner">
<img class="first" src="C:\wamp\www\Honeys Project\honeys\Image1.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image2.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image3.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image4.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image5.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image1.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image2.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image3.jpg" alt="">
<img src="C:\wamp\www\Honeys Project\honeys\Image4.jpg" alt="">
</div>
</div>
<?php
require( 'function.php' );
draw_titlebar();
draw_navigation();
?>
</html>
image path should be like this
<img src="http://localhost/Honeys Project/honeys/Image2.jpg" alt="">
change
<img class="first" src="C:\wamp\www\Honeys Project\honeys\Image1.jpg" alt="">
to
<img class="first" src="honeys/Image1.jpg" alt="">