IT Community - Software Programming, Web Development and Technical Support

only showing a value if it equals something?

This is a discussion on only showing a value if it equals something? within the PHP Programming forums, part of the Web Development category; Is this possible on my display page I have this code <td> <img src="showpic2.php?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 12-26-2008, 11:09 AM
nicolem443 nicolem443 is offline
D-Web Trainee
 
Join Date: Dec 2008
Posts: 3
nicolem443 is on a distinguished road
Default only showing a value if it equals something?

Is this possible on my display page I have this code
<td>
<img src="showpic2.php?adid=<?=$id?>" />
</td>
the default background is in css and has a no picture image which shows when a picture is not there but for example in this table td there is the no image background picture controlled by css but no picture in the database in this cell so how can i make it so it only shows a picture when there is a value to the picture? right now just shows the background with the annoying no image x.
__________________
Headlights
Cheap Holidays
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing C# Intellisense in TextBox arjkhanna C# Programming 3 05-25-2009 10:56 PM
Showing n Hiding DIV LAYER through JAVSCRIPT? laksh_khamesra Web Design Help 1 09-09-2008 08:10 PM
show clocks, one showing the current time, and another showing a time 12 hours behind itbarota HTML, CSS and Javascript Coding Techniques 1 02-13-2008 09:15 PM
Showing PHP source jegan PHP Programming 1 07-24-2007 12:09 AM
How to run win app without showing it in task manager Gopisoft VB.NET Programming 1 07-18-2007 12:36 AM


All times are GMT -7. The time now is 01:04 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0