0

I've some images in the server. But the images are not shown. I've used the following code.

$baseUrl = "http://gkill7777.net";
<img width="600" src="<?php '.$baseUrl.' ?>/test/test_pssg/images<?php echo $recPsgQuesTest1->pssg; ?>" />`

Is it a server problem or my coding problem? The code is running swiftly on my local server…

e-sushi
  • 13,786
  • 10
  • 38
  • 57
Mak Reza
  • 107
  • 1
  • 1
  • 8
  • Please, add some more information about what you want to do. $baseUrl = "http://gkill7777.net/test/test_pssg/imagespssg"; – Duikboot Oct 24 '13 at 09:11
  • It could be anything, use echo $baseUrl as someone suggested, also make sure all the cases match (often live servers are case sensitive). I usually right click the missing image and open in new window, that what way you can see where it's looking for the image. Compare it with the image location and see if they match – A. Mo Oct 24 '13 at 09:44

1 Answers1

1

In

<img width="600" src="<?php '.$baseUrl.' ?>/test/test_pssg/images<?php echo $recPsgQuesTest1->pssg; ?>" />

change

<?php '.$baseUrl.' ?>

To

<?php echo $baseUrl; ?>
Taytay
  • 82
  • 7