Is there a way of hiding the ? symbol if a record's image field is blank?

If that makes sense....
Basically I've set up a details page on a site that allows the site owner to display up to three images. However, sometimes they'll only upload one or two images.
Which currently looks like this :
http://www.travel7107.com/destinationDetails.php?destinationID=57
Is there some way to get rid of the little ? icons where the image field is empty?
I tried uploading a small white image, and setting the fields to blank.gif as the default, but the file upload script seems to overwrite those with an empty field if no image is selected to upload.
So at the moment I've given them that small image to use if they don't have images, but it would be good to know if there was a way of avoiding that step?

Thanks for that. Not sure I'm getting the syntax quite right though.
The original lines look like this :
<img border="0" src="/destinationdetailpic.php?file=images/destinationpics/<?php echo $row_WADAdestinations["image_2"]; ?>">
So I thought it should be :
<img src="/destinationdetailpic.php?file=images/destinationpics/<?php echo $row_WADAdestinations["image_2"] = true ? $row_WADAdestinations["image_2"] : ''; ?>" alt="">
But that's not right :
http://www.travel7107.com/destinationDetails2.php?destinationID=57

Similar Messages

  • Is there a way to get the coherence reporter to record the interval?

    There are three questions, really - but the first is the most important.
    1. Can you get the reporter to record the duration since the last batch in seconds (or ms) in the same row as the current batch?
    2. Can you get the reporter to record the timestamp in the report rows as ms since epoch (preferrably alongside the regular date in a different column, but by itself it'd probably be ok)
    3. Is there any way to hook into the reporter output to customize how it records the actual data?
    The jmx reporter records the batch number and the date of the batch run, but I don't see an easy way to get it to record the current date as a MS timestamp.
    I've thought about creating a simple custom MBean that existed to do nothing but expose the current time in ms since epoch as an attribute that I could then have the reporter use and include a column both for the absolute date and for the relative date. Having certain metrics reported in terms of # of events / second would make it easier to analyze certain data (for instance, instead of showing the total ReadTimeMillis if it would show ReadTimeMillis / Reads / # ms * 60 to get the average time for a read, that would be a lot more useful for comparing intervals)
    The intervals are never run on exactly the same schedule because the timer starts after the last report runs and the duration of running all the reports is not uniform.
    (It'd also be very nice if the outputting of the reports were configurable and there was a way to plug into the reporting engine to hook in a different output method - e.g. to a database or to send the data over UDP to a graphite server or something)

    When I record the keyboard sounds as a midi track in Logic
    I loose my sounds when I bounce to disc. Why do the sounds
    not record on the hard drive when I bounce the midi track.
    The plug in software instruments bounce fine to disc, but
    not my keyboard sounds (external instrument-Roland XP 50
    Keyboard)???
    Think about it for a minute.... for one, MIDI is not audio, it's only data, you are not recording sound into the computer, the audio for the XP50 is coming out of the keyboard's audio outs. Software instruments take MIDI data and output directly to audio, so... they bounce fine as their output is audio. Your XP50 keyboard's audio outs are on the keyboard. So, you will have to record the audio from the keyboards output. I notice you're using Logic Express, unfortunately it doesn't have the I/O plugin.
    pancenter-

  • Is there a way to get the cursor position index of html text field

    I'm trying to work on a text pad like MC with "insert text at
    position X" and "find and replace" can anyone tell me how to find
    the cursor index of an html text field. Selection.getBeginIndex() ,
    Selection.getEndIndex(), Selection.getCaretIndex() as far as I know
    these methods only work with text and not htmltext.
    What I'm trying to do is assign different parts of the string
    to variables so that I can combine them to reconstitute my html
    string.

    enfantterrible:
    If I understand correctly, you want the corresponding
    position in the
    htmlText propery of the caret index (which as you point out
    is only the
    position in the plain text version of the textfield content).
    Below is how I would do it. Maybe there's an easier or more
    efficient
    way (using XML objects etc), but I don't know it. You could
    conduct all
    your string searches in the plain text and then convert the
    result to
    the html positions. I didn't build this to accept negative
    parameters
    for the pos parameter (e.g. from end of string backwards) but
    the
    function could be adapted to do this too if necessary. The
    test data is
    not proper html from a text field, but it doesn't really
    matter what it
    is so long as its formatted correctly. It just separates the
    tags from
    the content to enable apples with apples comparison.
    //some test data
    var testStringXML = "<format>Hel<b>lo i can't
    t<i>ell you h</i>ow hap</b>py I
    am.</format>";
    var undecoratedString = "Hello i can't tell you how happy I
    am.";
    //the conversion function
    function findDecoratedPosition(pos:Number, xmlString:String,
    test:Boolean):Number {
    //anything between '<' and '>' should be excluded from
    plain text search.
    //create an array of array elements (n=2) consisting of tag
    then plain text
    //requires correctly formatted xml/html
    var tempArr:Array = xmlString.split("<");
    for (var aa = 0; aa<tempArr.length; aa++) {
    tempArr[aa] = tempArr[aa].split(">");
    //remove the first and last elements of the new array (these
    are empty)
    tempArr.pop();
    tempArr.shift();
    //find the corresponding plaintext location and calculate
    the "decorated" position
    var retPos:Number = 0;
    var posCount:Number = 0;
    for (var aa = 0; aa<tempArr.length; aa++) {
    retPos += tempArr[aa][0].length+2+tempArr[aa][1].length;
    //+2 allows for missing < and >
    posCount += tempArr[aa][1].length;
    if (posCount>pos) {
    return (retPos+(pos-posCount));
    //out of range
    return -1;
    //test code:
    for (var aa = 0; aa<undecoratedString.length; aa++) {
    var altPos = findDecoratedPosition(aa, testStringXML);
    trace(undecoratedString.charAt(aa)+" in position "+aa+"
    plainText equates to position "+altPos+" in the decorated version
    ["+testStringXML.charAt(altPos)+"]");
    }

  • Is there a way to alter the file name given to the attachments in an email button?

    When ever I click the standard email button, I get an attachement with random alfa and numeric characters for the file name.  Is there any way to change the files names to match a data field in the form or start with something I choose?
    Thanks,
    Judy

    Hi RudyLou36,
    While viewing the form in Preview TAB of LC Designer you will always get the junk characters as the name of the file. Save the file and open it in Acrobat or Reader.
    You won't be able to change the filename unless you save the file first. Here (http://forums.adobe.com/thread/462681) is an example of a number of ways to deal with parts of the email programatically.
    Regards,
    ratnesh

  • In Mail, is there any way to prevent the ampersand 20 symbol in downloaded attachments?

    Long title, but as it suggests, every time I download an attachment in Mail that has a space in the title, Mail puts in %20 to replace the space (ascii symbol for space).  I'd like to prevent this and have attachments stored under the name they are sent.  Any way to do this?

    Is there any way to prevent the OS from querying the Superdrive when start
    No
    he OS queries the drive slot to see if there is a disc present.
    How can you tell? Based on the noise it makes?

  • Is there a way of hiding certain pages from the preview at the bottom of the ipad screen in ibooks author?

    Is there a way of hiding certain pages from the preview at the bottom of the ipad screen in ibooks author?
    I'd like to only show the first page of a section in ibooks author's preview.

    Thanks for your reply, Ken. I did start a separate topic for this but it didn't seem to publish properly.
    I've posted it again here:
    https://discussions.apple.com/message/19816933#19816933
    I assume you don't know why this is happening to my TOC?

  • Is there a way to use the Unicode Miscellaneous Symbols in Photoshop CS3?

    Hi,
    Is there a way to use the Unicode Miscellaneous Symbols, a list of which can be found here: http://en.wikipedia.org/wiki/Miscellaneous_Symbols in photoshop CS3?
    I've enabled unicode on my keyboard; and I can make the symbols if I type them in Textedit. But, if I try to copy and paste them into Photoshop it doesn't work.
    Is there a way to access these symbols in Photoshop? They aren't in the Symbol, Wingdings, or Zapf Dingbats fonts.

    Hi Chris,
    Thank you very much for the message.
    With unicode enabled and the character palette open, I have to change View from Glyph to Code Tables in order to find the characters I need. (What I need isn't available in the glyph view as far as I can see). Then I scroll down to the unicode series beginning 00002600 Miscellaneous Symbols. I tried copying and pasting a character from here into photoshop, but it didn't work.
    Unfortunately, I don't see the symbols I need in the glyph view. Is there a way to copy and paste from the code tables view? If you have any suggestions, please let me know.
    Thank you.
    -Laxmidi

  • Is there any way to repeat the last action on a new selection?

    I'm playing with Pages to see if I can use it instead of Word. I'm very expert with Word, just starting with Pages. Like some things, don't like some, but I think it's worth continuing to play with it to see if it will work for me. One problem I've been having is repeating an action. In Word, if you do something (in the particular situation I just had, it was deleting a row in a table), and then click on another place and do command-Y, it repeats what you did. Similarly, if you format a word as bold, say, and then select another word and do command-Y the second word will also be made bold. I realize the latter can be done in pages by selecting "emphasis" style for the second word, but I couldn't figure out any work-around for deleting the table rows (I tried selecting several non-adjacent rows, but "delete row" was greyed out on the actions menu). Any way to do this that I've missed?

    Thanks anyway. I'm sorry that Apple didn't include a "repeat" keyboard shortcut - going to the Inspector and then the actions wheel and then "delete row" time after time wasn't fun.
    I'm afraid I failed to communicate well about outline format - I didn't mean a bulleted or numbered list, I do know how to do that, but rather making a single character (or in my particular interest a symbol, the diamond and heart suit symbols) appear in outline text format. You can do it by going to format->font->outline, but if I want to do it for several occurrences of the same thing (or a few different things), it's not much fun to do it that way. But maybe I can define a character format that's outline and that will work. Still would prefer to have a keyboard shortcut to apply the character format though.
    Incidentally, while I'm talking about diamonds and hearts, is there any way to change the amount of space that gets put in after the diamond and heart symbols if you insert them using Edit->Special Characters? I write a lot of documents that use those symbols and lines end up unevenly spaced because of the large amount of space below each symbol (I've figured out a partial work-around - I defined a style for "body after suit symbol" that is raised enough to get the line spacing right, but that only works when I want to have a hard return at the end of the line with the suit symbols, since if the lines wrap, both lines have to have the same paragraph formatting. This problem isn't really Pages related - I have the same difficult with Word .

  • Is there a way to place the Dock on the bottom of a secondary monitor?

    I use my iMac as primary monitor and a secondary display on the right. Is there a way to place the dock on the bottom of the secondary monitor(in a way that the display arrangment actually match the monitor position on my desk)?
    I want something like this, with the red marker as the dock(the display arrangment match how the monitors are in my desk):
    The solution I'm working with is:
    I could turn the monitor attached to the iMac as primary(and set the dock there), but I got some problems with programs opening in wrong positions all the time and some issues with full screen programs as well(also I think the iMac didn't handle well setting the primary display in another monitor).
    If there isn't a way to do it in Mountain Lion, will Maverick do any better?

    Don't know of a way to get the Dock on the top.
    But, to keep it out of the way but available, in the Dock prefs pane in System Preferences you can set it to "automatically hide and show". Choosing that setting means the Dock will normally be hidden; to gain access to it, all you need do is brush the bottom of the screen (or the side you have Doc set to) with the cursor, and it will appear, staying visible only until you move the cursor away.
    You can also use the keyboard combo Command-Option-D to invoke/revoke Dock Hiding, which in effect means you can use that keyboard command to toggle the Dock's visibility.

  • Is there a way to detect the end of a video?

    Is there a way to detect the end of a video.. .mp4 or youtube? I want to be able to detect the end of a video and then have it do something...ie play on timeline or go to and play symbol.

    For youtube the code would be something like this:
    view-source:calkaweb.herobo.com/video.html
    for HTML5 videos for youtube replace &version=3 with &html5=1 in the youtube URL
    I have no idea how to impletent the youtube code into Edge tho other than an iframe but that wouldn't work I've tried :
    http://forums.adobe.com/thread/1285212
    You would need to place all of the youtube codes into edge in order for it to work but I duno how to do that and no1 answered the question in the thread I made about it.
    as for MP4/HTML5 video you can use
    var video = document.getElementsByTagName('video')[0];
        video.onended = function(e) {
          /*Do Something*/

  • Is there a way to print a symbol library with names?

    Is there a way to print a symbol library with names?

    Look here for a script but it would need a little massaging to add the names.
    http://forums.adobe.com/thread/837709

  • I bought my 'air' in Australia the keyboard has a dollar sign, is there a way to change the setting so that a pound or a euro sign appears? I am from the UK and currently live in Spain!

    I bought my 'air' in Australia the keyboard has a dollar sign, is there a way to change the setting so that a pound or a euro sign appears? I am from the UK and currently live in Spain!

    Hi colin the card,
    Welcome to Apple Support Communities.
    It sounds like you purchased your device in a different country than the one you reside in and want to change the currency symbol typed from the keyboard. The article linked below will provide details about changing your MacBook Airs region and currency format.
    OS X Mavericks: Customize formats to display dates, times, and more
    http://support.apple.com/kb/PH14227
    I hope this helps.
    -Jason

  • I create a birthday calendar in iCal and then click on it in iphoto at the begining of the calendar project each year.  Some how the birthday did not populate the photo calendar.  Is there a way to add the birthday iCal calendar into the calendar project?

    I created a birthday calendar to use in iphoto for calendar.  When a new calendar project is started each year, I click on it in.  Some how the birthday did not populate the photo calendar this year.  The photo calendar is almost complete.  Is there a way to add the birthday iCal calendar into the calendar project? I would prefer not to start over.

    Hi,
    If you first select the calendar on the left, so that its background is highlighted blue/grey, when you make a new events they should be added to that calendar.
    Best wishes
    John M

  • Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously?

    Hi Apple community,
    This is my first go at this so be kind,
    My question concerns launchpad. Coming from Snow Leopard I had been using spaces. I like to keep certain bundles of programs on separate desktops, for example all word processing related tasks in one place. I have set up the equivalent on Yosemite.
    My problem is concerns the loss of exposé. Now I know when you swipe into launch pad you get a very similar effect but the issue I am having concerns the "zoom out" effect when you swipe into launchpad. With exposé all open apps/pages etc would be fully exposed - in my case several (sometimes as many as 9 word documents). What I am running into is when I do this in / into launch pad the "pile" of docs is exposed but they are still overlapping so I can't get a good look at which is which and visually identify where I want to navigate to.
    My question is this; Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously? If so, instructions on how to do so would be greatly appreciated. Any alternative suggestions to doing this outside of launchpad are also welcome. If there is an exposé app for example, I would be quite willing to go that route.
    My main concern is being able to quickly (ie a touchpad gesture) expand all the open pages so I can bounce between them.
    Much thanks from a loyal Apple friend.

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • Is there a way of stopping the battery from charging?

    Dear Apple Community,
    Recently I installed iStat Menus and found that, over the course of this year, my Macbook's charging capacity has dropped 5%. I know this isn't a massive number, but battery performance has become a concern for me. I use my Macbook as a desktop replacement, on the main. It's sitting on a mStand, connected to a large monitor on my desk. I use my Macbook to play games, surf the internet, do work and all that good stuff - basically, I use it for everything. I rarely use the Macbook without it being plugged in. I read on the Apple website that they do not recommend leaving the Macbook on charge permanently and that I should use it on battery at least one a month. As I use my Macbook as a desktop replacement, I don't actually have a lot of opportunity to do this.
    My question to you, the community, is: is there a way of stopping the battery from charging, either with the use of an app or a physical device? Ideally, I would love to have my power plugged in BUT only used when the battery drops below 10%. Is this possible with an app?
    On the other hand, am I just worrying about nothing? Will my battery be damaged further if I leave the Macbook charging permanently?
    Thanks for your help!
    Jeremy Reid

    Ideally, I would love to have my power plugged in BUT only used when the battery drops below 10%. Is this possible with an app?
    The charging characteristics are handled in firmware.  There is no app that would be able to do this.  You actually would not want to do this anyway.  Regularly discharging your battery to 10% will greatly decrease the life of your battery.  While it is true that you should not use your system exclusively plugged in, allowing it to run on battery a few hours a week should be fine.  Letting the battery regularly run down to (or below) 10% will cause you to use up cycles more quickly than is necessary (thereby reducing the life of your battery).  It's really a only a matter of disconnecting your Magsafe connector once in a while.
    Leaving it plugged in does not result in it being charged "permanently".  It will charge until it is full and then charging will stop.  It will only begin recharging when it reaches about 95%.

Maybe you are looking for