Jump to content

Simple If Statement In Html-Java


phpjayx

Recommended Posts

I'm new to this stuff, so I'm sure its something simple....

 

 

I'm attempting to load in a default picture if one from the database isn't defined

 

Its not working, is there anything I'm doing incorrect here?

 

Thanks in advance

 

---------------------------

<script type="text/javascript" src="jquery-1.8.2.js">

if(<?php echo $picture?>!=""){

<img id="img_background"src="<?php echo $picture?>" />

else

<img id="img_background"src="LogoColorTextBelow.png" />

}

Link to comment
https://forums.phpfreaks.com/topic/272279-simple-if-statement-in-html-java/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.