Linking Image to User in seperate table

I am building a dynamic Image gallery where users can upload images to their profile for customers to view. The images are stored in a file with the path to the image stored in a different table than the details for the user. So far I have managed to do the image upload and link the user ID in the Images table to the ID in the details table so that all the images associated with that user is linked to his record in the details table. My problem comes in when joining these two tables for one recordset. I have managed to join them, only that each record with more than one image associated with it displays more than once. So if user 1 uploaded two images, his record comes up twice in the results. Any suggestions as to how I can force the query to display every record only once no matter how many images that user uploaded?
Hope this makes sense. Thanks
Reandré

The detail page will be used to display all the info on a specific establishment, so my detailRS1 Recordset is the actual detail recordset and not the images recordset. Not sure if it makes sense? Let me paste the code here:
$maxRows_DetailRS1 = 10;
$pageNum_DetailRS1 = 0;
if (isset($_GET['pageNum_DetailRS1'])) {
  $pageNum_DetailRS1 = $_GET['pageNum_DetailRS1'];
$startRow_DetailRS1 = $pageNum_DetailRS1 * $maxRows_DetailRS1;
$colname_DetailRS1 = "-1";
if (isset($_GET['recordID'])) {
  $colname_DetailRS1 = $_GET['recordID'];
mysql_select_db($database_test, $test);
$query_DetailRS1 = sprintf("SELECT * FROM name WHERE id = %s", GetSQLValueString($colname_DetailRS1, "int"));
$query_limit_DetailRS1 = sprintf("%s LIMIT %d, %d", $query_DetailRS1, $startRow_DetailRS1, $maxRows_DetailRS1);
$DetailRS1 = mysql_query($query_limit_DetailRS1, $test) or die(mysql_error());
$row_DetailRS1 = mysql_fetch_assoc($DetailRS1);
if (isset($_GET['totalRows_DetailRS1'])) {
  $totalRows_DetailRS1 = $_GET['totalRows_DetailRS1'];
} else {
  $all_DetailRS1 = mysql_query($query_DetailRS1);
  $totalRows_DetailRS1 = mysql_num_rows($all_DetailRS1);
$totalPages_DetailRS1 = ceil($totalRows_DetailRS1/$maxRows_DetailRS1)-1;
mysql_select_db($database_test, $test);
$query_Recordset1 = "SELECT * FROM images";
$Recordset1 = mysql_query($query_Recordset1, $test) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
//head
//body
<div id="content">
  <img src="Images/heading_index.png" alt="Search, Browse and find &lt;b&gt;Accommodation in South Africa&lt;b&gt;" width="735" height="33" hspace="80" vspace="10" />
  <p><?php if ($row_Recordset1['usrID'] = $row_DetailRS1['id']) { ?>
  <img src="<?php echo $row_Recordset1['path']; ?>" />
<?php } ?></p>
  <table border="1" align="center">
  <tr>
    <td>id</td>
    <td><?php echo $row_DetailRS1['id']; ?></td>
  </tr>
  <tr>
    <td>name</td>
    <td><?php echo $row_DetailRS1['name']; ?></td>
  </tr>
  <tr>
    <td>province</td>
    <td><?php echo $row_DetailRS1['province']; ?></td>
  </tr>
  <tr>
    <td>city</td>
    <td><?php echo $row_DetailRS1['city']; ?></td>
  </tr>
  <tr>
    <td>type</td>
    <td><?php echo $row_DetailRS1['type']; ?></td>
  </tr>
  <tr>
    <td>price</td>
    <td><?php echo $row_DetailRS1['price']; ?></td>
  </tr>
  <tr>
    <td>website</td>
    <td><?php echo $row_DetailRS1['website']; ?></td>
  </tr>
  <tr>
    <td>email</td>
    <td><?php echo $row_DetailRS1['email']; ?></td>
  </tr>
  <tr>
    <td>fax</td>
    <td><?php echo $row_DetailRS1['fax']; ?></td>
  </tr>
  <tr>
    <td>landline</td>
    <td><?php echo $row_DetailRS1['landline']; ?></td>
  </tr>
  <tr>
    <td>cell</td>
    <td><?php echo $row_DetailRS1['cell']; ?></td>
  </tr>
  <tr>
    <td>contact_name</td>
    <td><?php echo $row_DetailRS1['contact_name']; ?></td>
  </tr>
  <tr>
    <td>caontact_surname</td>
    <td><?php echo $row_DetailRS1['caontact_surname']; ?></td>
  </tr>
  <tr>
    <td>profile_pic</td>
    <td><?php echo $row_DetailRS1['profile_pic']; ?></td>
  </tr>
  <tr>
    <td>username</td>
    <td><?php echo $row_DetailRS1['username']; ?></td>
  </tr>
  <tr>
    <td>password</td>
    <td><?php echo $row_DetailRS1['password']; ?></td>
  </tr>
</table>
  master
</div>
Hope you can make more sense of what I am trying to do. Not sure how to explain it. This is only a test page but all the basic information is there

Similar Messages

  • Linked images in a table showing visted and messing with the the whole table

    Help Please.
    I have never had this happen in any other version of dreamweaver.  Using dreamweaver CC right now.
    I have an image created in photoshop. cut into slices. load the html and images into dreamweaver.  Dreamweaver then creates a table.  If i upload just like that, site looks fine.  Once I choose an image slice, create a link to it and then upload the site, there is a purple border around the image therefore wrecking my whole table.  The site shows breaks between each image slice.
    THank you

    The only real advice I can give, that will help you in the long run, would be to take some time to learn at least the basics of html and css. Photoshop's way of doing things will almost always blow your site to pieces as soon as you start changing content around. To create professional websites with DW, you are expected to understand HTML and CSS (and to a lesser degree, javascript). Without a firm understanding of HTML and CSS though, little issues like the IE border problem can become huge problems.
    There are tons of places online to get tutorials on all of this, I personally like the following links, for the basics...
    HTML: http://w3schools.com/html
    CSS: http://w3schools.com/css
    Once you understand what's going on behind the scenes in DW, it's much easier to work with the program. Once you understand how to work with the code the program gives you, Photoshop can be left to do the work it was designed for, image manipulation.

  • How do I change the user linked image

    In the user profile there is a specified "linked" image. In my case it is the image that was created when my user ID was first established. I'd love to change it to a better image because evidently it gets linked with my messages etc.  I'm running Yosemite (OS 10.10.1) on a relatively new iMac

    Niel
    That is precisely what I'd like to do but I cannot figure out how to do it. When I select the "linked" tab a little window with a matrix of squares appears. One (upper left) has the offending image. It can be "edited" but that seems limited to changing the brightness, zoom or something with a slider bar below. I can't delete it or replace it. I can't figure out how to populate the other empty square with images (I'm only guessing that is what they are there for). I tried drag-and-drop and copy paste without any evident action happening. I'm trying to do exactly what you advise, but I'm lost.

  • Linking UDF to User Defined Table

    Dear Experts,
      I have a UDF on the batch tables that I would like to link to a User defined table. After creating the link, the UDF drop down cannot open up to display anything. The drop down box is there on the UDF but cannot open or drop to display anything from the user defined table.
    Has anyone came across this problem before ?
    Regards,
    Edited by: MARTIN KAMAU on Jan 4, 2011 10:12 AM

    Hi Martin,
    When you click on the UDF for the drop-down, do you see an option for "Define New"?
    What version of SAP are you using?
    Regards
    Sudatt

  • Linked Image ADF FACES

    Hi to all!!..
    Im using ADF Faces components with JDeveloper.. and I want to know how to put a link image... i mean... i want to an image in a table....then...when the user click that image, the image will open another window with an external url like www.oracle.com for example.
    That link have to be binded, because the image can change the url and not always will be the same url, but will be the same image
    Thanx in advance!

    Thanx Steve...But is not what i need...because, the commandLink...or the GoButton let me put an embedded image, but dont let me open an external url, i mean...an external URL who is not on my project or in my server. The commandLing or GoButton only can open URLs who exist in my project and with a navigation case, but that is not what i want...what commponent let's me make an image linkable?...and that link have to be an external url like http:\\www.abcabc.com....
    I was using an HTML Common Hyperlink with an HTML Common Image, and that works, but the url is not variable, and i need the url be bindeable to change the destination sometimes but the HTML Common Hyperlink dont provide me that property.... :(

  • I just upgraded to the latest software for my pages.  When I opened an old document it stripped out all the images I had in my tables.  How do I get them back

    I just upgraded to the latest software for my pages.  When I opened an old document it stripped out all the images I had in my tables.  How do I get them back

    Don't save. Close the documents.
    Pages '09 should still be in your Applications/iWork folder.
    Pages 5 will damage/alter older files, something Apple didn't tell its users.
    Pages 5 is a severely stripped down version with over 90+ features removed.
    We recommend trashing/archiving Pages 5 after Exporting any files you may have saved back to Pages '09.
    Also rate/review Pages 5 in the App store.
    Peter

  • Outlook not seeing link images

    Hello All and Happy Friday (the 13th buwahaha)
    OK, issue
    Outlook 2010 and 2013 (Exchange Accounts)
    Users get emails html formatted.  Outlook displays the red x with the message "The linked image cannot be displayed.  The file may have been moved, renamed, or deleted. etc..."
    However, OWA displays it properly, so do the phones.
    This leads me to believe it is proxy related.  Now my problem comes in with the knowledge that we are using a Cisco IronPort as our proxy, we don't even configure the browsers for it...  Just catches it.
    I've tried every fix I can find and none have resolved the issue.
    Any ideas?
    Thanks

    Hi,
    I actually found a kb about this issue:
    Images in email message disply a "red x" instead of the image if the Cache value in the registry is incorrectly configured
    This problem occurs if there is incorrect registry data for the Cache
    value under the following registry key.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    Important
    Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it,
    back up the registry for restoration in
    case problems occur.
    To resolve this problem, use the following steps to manually edit the data for the Cache value in the registry.
    Exit Outlook if it is running.
    Start Registry Editor.
    Windows 8
    On the Desktop, press the Windows key + X and click
    Run . Type regedit in the Open box, and then press ENTER
    Windows 7 or Windows Vista
    Click Start , type regedit in the Start Search
    box, and then press ENTER.
    If you are prompted for an administrator password or for confirmation, type the password, or click
    Allow
    Windows XP
    Click Start , click Run , type regedit
    , and then click OK.
    Locate and then select the following key in the registry.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    Update the Cache value to the default value according to your version of Windows.
    Windows 8, Windows 7, or Windows Vista
    Name: Cache
    Type: REG_EXPAND_SZ
    Data: %USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files
    Windows XP
    Name: Cache
    Type: REG_EXPAND_SZ
    Data: %USERPROFILE%\Local Settings\Temporary Internet Files
    Close Registry Editor.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Linked images not showing

    Hi,
    We're running Illustrator CS4 across a suite of 12 Macs on OS X 10.6.8.  Over the last couple of weeks, several accounts have been hit with the same problem, that linking an image in an Illustrator document will not show the images, but just a bounding box.  The link information is correct, but I've found no way of getting the image to show, aside from embedding it.  Furthermore, saving a document in this state will cause Illustrator to crash when trying to reopen the document.
    We use network accounts for the Macs, so all installs are local on each machine, but users access their profile directly from our server.  Therefore, all links reference a location on our network and not the local drive.  However, there does not seem to be anything wrong with the installs as the issue is with accounts and not the individual client.  Once the issue occurs for a user, it occurs on any Mac they log into, while unaffected users can use any Mac without issue.
    Our network has run in this state for a year now and the problem has only surfaced recently.  I've tried clearing user's preference files relating to Illustrator, but this has had no effect.  It's also random when creating a new user on the network, as some will have the issue and others not, despite all being created with the same set of default preferences.
    If anyone has come across anything similar, or has any idea of what to look at with this, I'd be very grateful for some help. 
    Thanks,
    Simon

    Hi Steve,
    Thanks for the response.  First of all, you'll have to excuse me if I get a few points wrong, as I'm not too familiar with Illustrator.  However, in answer to your questions;
    The layers panel is showing "<Linked File>" next to an empty white box.
    Turning off preview does show the boxes you describe.
    I've no idea how to go about checking if an image is beyond the mask bounds.  However, I've used the same image for testing across accounts and it displays fine on those that aren't having this issue.
    Also, in the top left corner of Illustrator, the name os the linked image does display and the options available when clicking that do seem correct and working.  Relinking from there does nothing, but I can open the image for editing etc.  None of this helps in getting the image to display though.
    As for the server side, we have always used a Mac server at the same version as the clients. 
    Thanks,
    Simon

  • Dropdown list to change image field linked image?

    Hello,
    I am quite new in Designer but I have to complete a job and I don't find the solution.
    I try to update on a form an image field using the value of a dropdown box and a "if" script.
    I use linked images (not embedded ones) and try using a script calling the image Field. value. image. href  property.
    The property is well updated as export to xml displays well the new href value but the image is not displayed as something was missing to activate it.
    form1.#subform[0].ImageField1::calculate - (FormCalc, client)
    if (UN_DropDownList == "3373") then ImageField1.value.image.href = ".\Images\UN3373.png"
    endif
    Rather simple (don't laugh at it) but it doesn't work.
    I found solutions for embedded images via visible/hidden by dropdown list (not yet tested) as these ones. I give them below for reference (if some other users are interested)
    http://forums.adobe.com/thread/683215
    http://forums.adobe.com/message/2187604
    http://acrobat.timhuff.net/?p=5
    But not for linked images (path or URL). By the way, I found same problem descriptions in other forums but without any proposed solution.
    As I should have quite a lot of images with frequent updates, it seems to me a better solutions...
    Thanks in advance for you help.
    Kind regards
    Philippe

    Hi Philippe,
    Have a look at this blog, http://blogs.adobe.com/formfeed/2009/11/linked_vs_embedded_template_im.html, it turns out that both linked and embedded images are stored in the PDF but just in different ways. So updating the href at run time will have no effect.
    If you are not in a possition to store all the images in the PDF at design time then you might have to look at setting up a webservice to access them on a server.
    Good luck
    Bruce

  • Why does Illustrator CS 4 high res pdf ask for linked images?

    I have saved high res pdfs (press quality) from Illustrator CS4 directly, and when I sent these pdfs to the printers, they ask me to supply them the linked images, otherwise they could not view the entire file completely. I thought the high res pdf setting would automatically embed images, could anyone please help me?? Our printers are waiting for explaination urgently and the images are very very large to be transferred overseas online. Thank you!!

    If you made a PDF which is "print ready" there should be no issue, this is given that the printer informed you as to what "Print Ready" was by their workflow standards. The only time I would need to go back to a client for source files which were embedded into a PDF is if there were color mode issues (RGB image needed to convert to CMYK with certain profile) or if client PDF produced without required bleed. If you have exercised due diligence and the PDF is in fact "Print Ready" the printer may not be used to working with PDF files that are truly print ready. I have sent PDF files to printers who absolutely wanted to open the PDF in Illustrator and have all source/linked files because they were used to getting all end user files, not press ready PDF files. Once I spoke with the Prepress operator and let him know that I went through the PDF and made sure the file was exactly separated as it should print, and he should be able to send it straight to his RIP, then everything was fine.
    Prepress people get used to dealing with designers who don't know how to do anything execpt make a moch up of what they want and print it out on their own ink jet printer. The actual file they send to the printer may need to be completely retooled in order to separate correctly for the printing process.

  • Linked image border

    This is small but irritating issue. Ever since upgrading to
    CS3,
    whenever I add a link to an image Dreamweaver puts the blue
    border
    around it. I have to manually set the border to 0 in the
    properties to
    get rid of it. Like I say it's no big thing but just another
    step I have
    to do. I cannot find anything in preferences that would have
    a no border
    rule for linked images. In MX2004 there this was never an
    issue, if you
    wanted the border you had to manually set it.
    Any ideas?
    Thanks.
    Fred

    >>Ever since upgrading to CS3,
    > whenever I add a link to an image Dreamweaver puts the
    blue border around
    > it.
    Dreamweaver is actually not doing anything. What you're
    seeing is normal
    behaviour for linked images in some browsers such as IE when
    no border
    property is specified in CSS or HTML.
    >> In MX2004 there this was never an issue,
    That's because MX2004 used to automatically insert border="0"
    as an HTML
    attribute in the <img> tag as soon as you added a link
    to the image (check
    for "0" being inserted in the border field in the Property
    Inspector next
    time you use MX 2004).
    DW is moving users ever more towards CSS-only formatting and
    is dropping
    HTML formatting of all kinds, which includes border="0" on
    linked images.
    To solve the issue with CS3, just add the line "a img
    (border: 0; }" to an
    external stylesheet which is linked to all pages in your
    site. This will
    tell all browsers to apply a zero border to any image inside
    an <a> tag i.e.
    all linked images
    Regards
    John Waller

  • Send an activation link to new user's email ID in webdynpro java

    Hi Experts,
    We have developed a custom Web Dynpro java application for the SAP user self registration.
    The user is being created successfully in UME db and we are also able to send an email to the user's registered Email ID.
    Now, as per the requirement we also want to send an activation link to the user's email id so that once the user clicks there then only the user ID gets activated
    Kindly let us know the steps involved so that we can achieve the functionality.
    Thanks And regards,
    Ghanshyam Agarwal.

    i think it's so general, nothing to do with sap
    1.lock the created user when creation
    2. create a table to store the newly created user
    3. create a servlet to receive the activation call
    4. remove user from the table and unlock user

  • How to display image that's in a table (BLOB datatype) in  apex 4.0 report

    I have an image that is in a table and I'm trying to get it to display in a report. The upload takes place on 1 page and the report is on another page. The source for the report page is as follows:
    select firstname,
    lastname,
    decode(nvl(dbms_lob.getlength(IMAGE),0),0,null,
    '<img '||
    'src="'||
    apex_util.get_blob_file_src('P1_PHOTO',username)||
    '" height="75" width="75" alt="Product Image" title="Product Image" />')
    detail_img
    from user_image
    P1_PHOTO is the upload item on page 1. My report is on another page. The image is not displayed in the report. Any ideas would be appreciated.

    Hi Charlie69,
    Go the Report Attributes -> BLOB Column -> Number / Date Format. Below this attribute you will find
    the link BLOB Download Format Mask which will open a dialog to fill in following information:
    1) Format Mask: IMAGE
    2) BLOB Table: Name of the table where to find the required BLOB
    3) BLOB Column: Table column name where you stored the actual BLOB
    4) Primary Key Column 1: Primary key of the table where BLOB is stored
    5) Primary Key Column 2:
    6) MIME Type Column: (Table column name where you stored the required information about BLOB)(Type: VARCHAR2)
    7) Filename Column: (Table column name where you stored the required information about BLOB)(Type: VARCHAR2)
    8) BLOB Last Updated Column: (Table column name where you stored the required information about BLOB)(Type: DATE)
    9) Character Set Column: (Table column name where you stored the required information about BLOB)(Type: VARCHAR2)
    10) Content Disposition: Inline(If you want to show it in the browser)
    11) Download Link Text: (Not necessary when you want to show image)
    I have set the format mask accordingly and the image is displayed in my report.
    Hope it helps!
    Regards,
    Kiran

  • Linked Images/Files not Updating to Remote Versions

    Recently, I've noticed that when I go to upload a new page to our company intranet, any linked images or files do NOT update to the linked versions when they are uploaded --- they are still pointing to the versions on my local drive, so all users see a broken image or are linked to a broken file. I am putting/checking in dependent folders, and the images/files are successfully loaded to the intranet.
    I'm able to fix the issue by manually locating the remote versions of the image/file and inserting it into my .html by hand, but obviously I would prefer to be able to do this automatically. This only started happening recently, as I never had trouble automatically updating links. As far as I know, no settings have changed.
    This is for CS5. Any ideas? Let me know if there are any relevant settings or info I can provide.

    Sounds like you have not created a Site Definition in DW. If you're working within a properly defined local site folder, DW correctly manages paths & assets for you. 
    Nancy O.

  • DPI of a linked image, illustrator - extendscript

    Hi,
    I am creating a script that needs to be able to find the DPI of a linked image. I presume there must be some way of getting to this data as it is in the links window in illustrator.
    I do also need to get other information in that window (colour space & scale), but the DPI is the one im struggling with at the moment.
    Mac 10.9, illustrator CS6, extendscript
    Has anyone got any ideas?
    Thanks in advance,
    Tom

    Thanks for the assistance, both of you.
    After looking at the XMP i have discovered that only Tiff files have the relevent data that i need and as there will be multiple file formats that the script will need to read this is not an option.
    I have used the bridge talk script from the other post that you linked and adapted it to search through all files in the document and quit photoshop when finished.
    One last question, is there anyway to find out if photoshop is already running? i dont want it to close the application if the user already had it open before running.

Maybe you are looking for

  • Adding a button to standard OWL

    Hello Gurus, How do we add a custom button to the Accounts OWL and act on click of it? I see that the UI is not extensible like that. The requirement is to select a number of customers from the list and click the button. The button click should call

  • If you right-click an image you can select to "Block Images" from the site, but how do you reverse this choice?

    If you right-click an image on a web page you can select to "Block Images from [the url of the site]". This works well, particularly to make the page printer-friendly, but how do you reverse this choice to see the images again?

  • Block payment if quality inspection failed

    Dear Experts, My company using Quality Managemnt module. So each material go thru quality inspection once GR done. Some of the material may falls under out of spec & it may reject from usage. Thus we wanted to block for payment whenever there is a re

  • Does Apple plan to update iWeb?

    I've enjoyed using iWeb 09 for just over a year, but I'm beginning to wonder if this program is going to be around in the future. I'm a small business guy with limited time to spend on making a web site, so if Apple is going to ditch iWeb I think I'd

  • Libraries and Classpath option panel is empty

    Hi All, Just installed Jdeveloper 11g 11.1.1.1.0 on Vista 64b. Added my jar file into "Manage Libraries" whent to the project properties, "Libraries and Classpath", but this pannel is empty, blank, does not have any options.... Any ideas what is wron