miniature href incorporated to show the shot upward

Hi people,

I have a question:

I want to link some photos on a Web site that are coming as embedded in the database so that the user can see the original image. The url of the thumbnail is stored in the base of a column next to the text. I invented a php code and added __EMBED_IMAGE__ to the exact spot, he should come. It shows very well without any problems. Now I want that the user will also be able to see the real blow-up or the original image in the original resolution by clicking on the thumbnail. In other words I want href the thumbnail for the original URL , but I see no place where I can enter it.

Thank you

zabberwan

It looks like somehow very complicated building the tag. It seems that you have given inconsistent in the column of url_pix of your database if you need to extract the value of HTML in some cases but not others.

The smartest way would be to keep the file name only in the database. However, if you cannot change the current configuration, that is how I would approach it.

 tag
  if (strpos($row_rsEvent['url_pix'], ' tag, just use the value
    $image = $row_rsEvent['url_pix'];
  }
} else {
  // if the field is empty, just use an empty string
  $image = '';
}

// if $image isn't an empty string
if (!empty($image)) {
  // build the HTML code to embed the image, using $image
  // and storing it as $p_image
} else {
  // if $image contains no value, you don't want to build any code
  $p_image = '';
}

// finally, embed the code
$p_image = str_replace("__EMBED_IMAGE__", $p_image, $row_rsEvent['Description']);
echo $p_image;
?>

This example uses a complex regular expression to match the value of the src attribute of the tag. You end up with the URL of the image in $image. You can then use $image to generate the HTML code that incorporates the image and creates the link to launch the larger picture. What this code consists of depends on how you plan to view the bigger picture (and what naming convention that you use to distinguish between small and large images).

Tags: Dreamweaver

Similar Questions

  • Disable the shot upward in order to minimize application?

    Is there a way to disable swipping upwards to minimize my application?

    There are two related things.

    One is the possibility of asking that a narrow invites shown. This does not minimize, but it does not reduce the case of the user accidentally * closing * the app. See https://developer.blackberry.com/native/reference/cascades/bb__application.html#function-setclosepro... for the background.

    The other is the permission of "narrow_landscape_exit" that you can add to an application, as described on this page https://developer.blackberry.com/native/documentation/core/com.qnx.doc.native_sdk.devguide/com.qnx.d...

    The latter is planned for the games when in landscape mode, a user can accidentally be minimize application too often as they manipulate the controls which is near the bottom edge of the screen.

    There is no way to prevent just the blow-up... it would be a "kiosk mode" type feature, for which we independent devs have been begging since the launched PlayBook.

    I'm pretty sure that there is at least an open question in Jira for what you vote for. (Does anyone remember where it is, casual?) Cannot be too hard to find.)

  • I'm unable to complete a download process. pop download - up appears and it seems to be downloading, but several tabs pop up and the point I'm trying to download does not show the end upward. my download using internet explore works very well

    The tab section keeps adding several tabs that I select something to download. It ends up a loop and keeps appearing as if it is the downloading of multiple copies of the same thing and I can't even get to a point where it allows me to stop the download or the closing of firefox

    See Firefox opens several times empty tabs or windows after clicking on a link

  • Reference Dell dock always shows an error at the beginning upward

    OT: Dell Dock.

    Dell Dock always shows an error at the beginning upward. Tried everything to remove it, but after three days, it always works on the removal of the transformation. What should I do now? I have a Dell Inspiron 545 s w/Windows 7

    Never mind. I'm tired of messing around with it. I disabled in the Startup tab "Yes I was" trying to delete, but it's not worth the hassle. Sorry for taking your time. At least I don't have to watch it at startup

  • Aero Peek shows sometimes miniature and sometimes Greyed on the picture box

    I activated Microsoft Areo.  Randomly while in office products, I'll see a true picture of a thumbnail of the document then the next thumbnail is grayed out just.  What can I do to make sure that all the thumbnails show the image of the document.  I made some changes in Microsoft Office Options in certain answers forum as well.

    Thank you

    J

    Hello

    I would like to know some information.

    1. This problem started after activation Microsoft Aero?

    I suggest you to refer to the suggestions of Shinmila H responded on July 24, 2010 and check if that helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/taskbar-not-showing-thumbnail-preview/60130c9e-5f5b-4EA7-82f5-593c0053e505

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • Is there a work around to show the Site identity button when the integration with facebook like/send etc. It disappears when it comes to the page, it's because of the iframe can be done if anything.

    Is there a work around to show the Site identity button when the integration with facebook like/send etc. It disappears when it comes to the page, it's because of the iframe

    What can be done if anything.

    Pages that use "mixed content" (parts of the use of the HTTP page and some use HTTPS) are not secure against tampering, they will not display the site identity button. To resolve this problem, make sure that external resources you are incorporation are available over HTTPS and you use HTTPS to nest them.

    For example, to iframe widgets like the Facebook 'Like' buttons, make sure that your iframe use src = "https://192.168.1.20 /...". »

    See also discussion here: http://stackoverflow.com/questions/3587021/facebook-like-button-breaks-https-ssl

  • I accidentally selected the wrong language during the whole upward.  How can I change so I can complete the installation?

    My finger slipped and I can't understand how to start go back to choose English or complete the entire upward, so I can change it later.  Is there a way to start over?

    If you have not configured the Apple TV, you need to jump or enter anything for the implementation of the measures initially and back to these settings once you can read the menus in your native language.

    Press the "Home Screen" on the remote control to return to the home screen menu and locate and select settings (with the gear icon), select the option at the top of the page in the menu, then scroll down and select the second to the last option on the next screen, that shows a list of languages, select yours. Apple TV needs to restart to change the language and ask you to confirm this, when it's this select the option at the top of the page.

  • HP Officejet 4630e all in one: the time on my printer display shows the wrong time

    The clock on the display shows the wrong time.  Does anyone know how to rectify this please.

    Hello

    The date and time settings would cause problems of synchronization with Eprint if incorrect. The date and time should be accessible from the Preferences menu.

    Try this

    Power reset

    1. Without putting off the product, disconnect the power cord from the back of the product.
    2. Wait 30 seconds and then plug the power cord into the back of the product.
    3. If the product is not already on, press the power button to turn it on.

    Now, try to change the date and time and check.

    Where this fails, try this

    Setup > tools > restore defaults

    Try to set the date and time of return

    NOTE: This will remove network also settings so you need to redo the configuration of the network

    Measures to restore the network configuration

    http://support.HP.com/us-en/document/c03834108

    Although I am an employee of HP, I speak for myself and not for HP.

    Click on the thumb BRAVO upwards on the left to say 'thank you '.

    Make it easier for others to find solutions by checking a response "Accept as Solution" if it solves your problem.

  • I use the windows photo gallery and wonder why my photos show the same icon and I can't get the image to show up as a thumbnail.

    Can Hello someone tell me why I can't see my photos, unless I saw. I use windows vista with photo gallery as my program. All my photos show the same icon blue landscape.

    Miniatures,

    Open your my pictures location, click on organize in the upper left corner, click folder and search options, click the view tab and uncheck the top option, always display icons and never thumbnails, select apply and save.

    Return to your location of my pictures, change the display of the page on the top of the right side next to the question mark symbol, there is another symbol with a menu drop-down symbol, click it and select the medium or large icons options specified.

    I don't remember if there is a setting in wlpg, separated

    Click the blue file dark in wlpg, then click on the options in the list, go to the display section and examine the options for thumbnails.

  • How to remove a title you created, which shows the wrong clip? __

    I conclude Edition and I've added my overlay clip title initially came out great... that is the problem. I tried to add a little poem on a clip of overlay at the end of my slide show and it came on the second clip at the beginning of the slide show... not the last clip at the end.  Cannot find where to remove it.   How can I place it at the end?

    I shot help in Movie Maker and it told me to do the same thing as you but it was easier because he had pictures lol. Worked well all ok but I need to shorten the duration of the title.

    fact what got me help and it worked, but trim handle will not stay. I go back to reading the script and is the same as before... go back to the timeline and its movement.

    I still did once and right click on it this time to save... but still not good.

    Sorry to bother you again

    ===========================================
    Here again... the problem of deleting and creating new can be the solution.

    With regard to a trim handle... If you place your pointer over the edge of the title
    in question and move around until you see a double arrow... you should
    be able to change the duration by dragging... in fact, you should see
    a ToolTip that shows the change as you do.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • I have to press F1 at the beginning upward

    I have to press F1 at the beginning upward

    It shows my rhubarb info processor type etc.

    It says F1 to resume F2 to set up how can I fix this ive tried to reinstall vista, but it did not work

    When you turn off your computer, and then restart it later, is the date and exact time or he start badly and set only once you connect to the internet at syhchronize with the time clock?  It would be another clear sign that the CMOS battery is the problem.  However, if the time is accurate when you start the computer, and then suggesting that maybe not battery CMOS because that's what keeps the clock running when you turn off the computer and if it is now present, it seems to work.  But perhaps it is not totally bad, but only of the weakness and the clock works while the BIOS is not.  In any case, it is a simple and inexpensive solution and certainly worth the cost and effort it can very well fix the problem if the options that I have proposed is not the thing.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Won't start at all. just a black screen. Only the satrts upward on safe mode

    Won't start at all. just a black screen. Only the satrts upward on safe mode

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    See you soon.

    Mick Murphy - Microsoft partner

  • monitor is showing the landscape instead of portrait

    my monitor is showing the wrong way, how can I go back there

    Hi Mike,

    This problem can occur because of incorrect graphics settings.

    Method 1:

    I suggest you try pressing Ctrl + Alt + upward arrow keys together on the keyboard.

    Method 2:
    If the problem persists, I suggest you try the following steps.

    (a) with the right button on the desktop.

    (b) click on the graphic Option.

    (c) click on Rotation.

    (d) click on rotate to normal.

    Hope this information helps. Answer the post with an up-to-date issue report to help you further.

  • When I completely turn the volume upward, there is a load screeching noise

    When I completely turn the volume upward, there is a load screeching noise

    Hi JacnLivi,

    Welcome to the Microsoft community.

    I understand how it could be frustrating when things do not work as expected. Please, I beg you, don't worry I'll try my best to resolve the issue.

    ·         Were there any changes made on the computer before the show?

    First of all, check is it y of electronic devices such as mobile, radio or TV near the computer. Try it away from them and check if it would launch persists.

    Follow these methods.

    Method 1: Run the audio troubleshooter.

    Open the troubleshooting of Audio playback

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-Troubleshooter

    Method 2: Follow the steps in the article.

    Tips for solving common audio problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    For reference:

    Sound cards: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/sound-cards-frequently-asked-questions

    Please follow all the steps and if the problem persists, return back and we will be happy to help you.

  • How can I turn off the shot of the gesture of my computer laptop windows 8?

    I am trying to turn off the gesture on my new laptop computer shot and nobody seems to have an answer. I go online to find an answer but it gives me some information to copy and use, but it doesn't seem to work. Can someone PLEASE give me EXACT instructions step by step on how to disable these gestures? It's EXTREMELY annoying that, although I am a game or do anything at all that the charm bar opens or opens the last bar app! Don't know how long I can take this! Thank you

    OK all you Sony Vaio users, you are absolutely right.  There is no way to disable the gestures of the mouse settings.  But... I figured out how to do without having to modify the registry.  Go to your applications screen and click on the form "VAIO Control Center" y go "Keyboard and mouse", at the top of the list below, you'll see "Turn it / off touchpad" with a power slider.  The right of the element is a button «Détails»  Until it clicks.  Who will open another box saying "Enable multi touch features" there you will see a selection of 'Show the charm' uncheck the box which, and you won't have to worry about those accidental shots again.  YAY!

Maybe you are looking for