Turn a text database search result into a clickable .pdf link to specific images
Hello and Good Afternoon all.
This is baffling me to no end, pretty desperate at this point.
I have a successfully implemented a search and results page from my database table 'products'. The results page displays a field from this table as products, msds, datasheet, description. I would like the msds & datasheet results to be clickable links to files in my images/pdf/msds folder or the images/pdf/datasheet folder.
The links are specific filenames such as msds-product.pdf or datasheet-product.pdf.. How can I get these links to open the exact filename that comes up in my search result? I can make it open the entire folder but I want just the specific file.
I don't write code very well - thank you for any help you can provide. Cindy
Hi Murray - Here is the exact code in DW on the results page with file names exposed in live view. I am concerned about not properly implementing this statement - where exactly should I insert?
<form action="data_search.php" method="get" name="data_results_form" id="data_results_form">
<p> </p>
<?php do { ?>
<table width="75%" border="0" align="center" cellpadding="5" cellspacing="5" summary="MSDS & Datasheet search results page. You may click on the hyperlinks to download pdf for each document.">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td style="color: #686666">Product</td>
<td style="color: #686666">MSDS</td>
<td style="color: #686666">Datasheet</td>
<td style="color: #686666">Description</td>
</tr>
<tr>
<td style="color: #23276A; font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-size: 16px;"><?php echo $row_Recordset_results['product']; ?></td>
<td style="font-size: 16px"><a href="images/pdf/msds/"".pdf"><?php echo $row_Recordset_results['msds']; ?></a></td>
<td style="font-size: 16px"><?php echo $row_Recordset_results['datasheet']; ?></td>
<td style="font-size: 16px"><?php echo $row_Recordset_results['description']; ?></td>
</tr>
</table>
<?php } while ($row_Recordset_results = mysql_fetch_assoc($Recordset_results)); ?>
</form>
Similar Messages
-
How to chart database search results?
I'm new to Macs and Appleworks. I want to make a graph/chart of numbers that come from summary fields of a database search. Do I somehow link the database search results to a spreadsheet? Can I put the graph on a database report page? Thanks.
Maybe this will help.
You can create a bar chart this way.
You have some summary fields to be charted, call them sum1, sum2, etc.
Create another summary field for each that you have. The basic formula will be:
LEFT("||||||||||||||||||||||||||||||||||",SUM('sum1'))
This will give a number of line characters to match the sums. Position these fields to form a chart. You can modify the font and style, etc.
There're also some variations. If your totals are large, you could divide the final parameter by something:
LEFT("||||||||||||||||||||||||||||||||||",SUM('sum1')/2)
And even multiply by something if your totals are small.
This is using the standard line character. You could also use dingbats - the "n" will give a solid square: LEFT("nnnnnnnnnnn",SUM('sum1'))
Additionally, to fill gaps between characters, you can create two chart fields for each total and overlap them.
Now, these are summary fields and so need to be on the summary part of the layout, and you must be in Page View to see.
David -
Search results do not include "sponsored links"
Hi Team,
Search results do not include "sponsored links" (delivered by sponsored links index) nor "related terms" (not sure where/how these are configured
Thanks
ChanduYou may also have to create an allow exception to keep this cookie.
In case you are using "Clear history when Firefox closes":
*do not clear the Cookies
*do not clear the Site Preferences
*Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
*https://support.mozilla.org/kb/Clear+Recent+History
Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception. -
i have a master results page (aspVB) from Dreamweaver 8. have
search page from
WebAssist Database Search using advanced text search (single
search box)
question 1 - when a user hits 'enter' on the search page, all
records show,
no matter if there is any value in the search box or not. How
do you prevent
any records showing, if 'enter' is selected and the search
box is empty, and
if there is a value in the search box and 'enter' is
selected, show just the
results from the search box value?
question 2 - if more than one word is put in the search box,
such as, 'green
sol' the results show any thing with 'green' as well as
anything
with 'sol' and also anything with 'green sol'. how can you
just have the
results with 'green sol' and not 'green' or 'sol'. result
wanted is 'green
solutions' or 'green solar' or 'green sold'.
thanks for your help
jim balthropThank you for pointing out this problem. It has been fixed. (If you still see the wrong topic being linked to, try refreshing your browser. If it's still a problem, it might take a little while for the Database 11.2 documentation library to be updated on various systems worldwide. It did work just now for me.)
-
<blockquote>Locking duplicate thread.<br>
Please continue here: [/questions/784003]</blockquote><br>
Level 1
2/13/11
I'm using an iMac with Firefox as my browser. On the top right beside the URL box I have my google search engine (I can also use the drop down to search with Yahoo, Amazon, Answers.com etc.... When I search for something I get results but for some reason now I get Islamic text in my results. For instance if I search iphone here's what I get as my first result:
iPhone 4 is a GSM cell phone with a high-resolution display, FaceTime video calling, HD video recording, a 5-megapixel camera, and more.
www.apple.com/iphone/ - الولايات المتحدة الأمريكية - نسخة مخبأة - مماثلة
Buy iPhone 4 Now
iPhone 3GS
Apple - Support
Features
Gallery
Apps for iPhone
iOS software update
Compare iPhone models
and here is what I get on the side bar (Top to Bottom):
صورمقاطع فيديوالأخبارالكتبالمدوّناتالوقت الفعليمناقشاتالمزيدأقل
Does anybody know why this is? I have done nothing to change Firefox, it just started happening.Hi, i had the same problem, and I also use Bullguard, I contacted them, just received answer, (in about 20 min). It is incompatibility of FF4 and bullguard (they know about it, and fix will be released soon), and probably most of the other antiviruses, as I see this is very popular problem. The solution though is very simple : in firefox disable addon "Bullguard Safe Browsing". It works. Or alternatively open bullguard go : antivirus - settings - safe browsing (unchek that). For those not using bullguard i would recommend to check their addons in FF and if there is any from your antivirus try to disable it for now.
-
Using Oracle Text to search through WORD, EXCEL and PDF documents
Hello again,
What I would like to know is if I have a WORD or PDF document stored in a table. Is it possible to use Oracle Text to search through the actual WORD or PDF document?
Thanks
DougYes you can do context sensitive searches on both PDF and Word docs. With the PDF you need to make sure they are text and not images. Some scanners will create PDFs that are nothing more than images of document.
Below is code sample that I made some time back to demonstrate the searching capabilities of Oracle Text. Note that the example makes use of the inso_filter that is no longer shipped with Oracle begging with Patch set 10.1.0.4. See metalink note 298017.1 for the changes. See the following link for more information on developing with Oracle Text.
http://download-west.oracle.com/docs/cd/B14117_01/text.101/b10729/toc.htm
begin example.
-- The following needs to be executed
-- as sys.
DROP DIRECTORY docs_dir;
CREATE OR REPLACE DIRECTORY docs_dir
AS 'C:\sql\oracle_text\documents';
GRANT READ ON DIRECTORY docs_dir TO text;
-- End sys ran SQL
DROP TABLE db_docs CASCADE CONSTRAINTS PURGE;
CREATE TABLE db_docs (
id NUMBER,
format VARCHAR2(10),
location VARCHAR2(50),
document BLOB,
CONSTRAINT i_db_docs_p PRIMARY KEY(id)
-- Several notes need to be made about this anonymous block.
-- First the 'DOCS_DIR' parameter is a directory object name.
-- This directory object name must be in upper case.
DECLARE
f_lob BFILE;
b_lob BLOB;
document_name VARCHAR2(50);
BEGIN
document_name := 'externaltables.doc';
INSERT INTO db_docs
VALUES (1, 'binary', 'C:\sql\oracle_text\documents\externaltables.doc', empty_blob())
RETURN document INTO b_lob;
f_lob := BFILENAME('DOCS_DIR', document_name);
DBMS_LOB.FILEOPEN(f_lob, DBMS_LOB.FILE_READONLY);
DBMS_LOB.LOADFROMFILE(b_lob, f_lob, DBMS_LOB.GETLENGTH(f_lob));
DBMS_LOB.FILECLOSE(f_lob);
COMMIT;
END;
-- build the index
-- Note that this index differs than the file system stored file
-- in that paramter datastore is ctxsys.defautl_datastore and not
-- ctxsys.file_datastore. FILE_DATASTORE is for documents that
-- exist on the file system. DEFAULT_DATASTORE is for documents
-- that are stored in the column.
create index db_docs_ctx on db_docs(document)
indextype is ctxsys.context
parameters (
'datastore ctxsys.default_datastore
filter ctxsys.inso_filter
format column format');
--search for something that is known to not be in the document.
SELECT SCORE(1), id, location
FROM db_docs
WHERE CONTAINS(document, 'Jenkinson', 1) > 0;
--search for something that is known to be in the document.
SELECT SCORE(1), id, location
FROM db_docs
WHERE CONTAINS(document, 'Albright', 1) > 0; -
What extra information ?
Correct, it will only be one-level, the Photos app doesn't support sub-albums - the sub-folders photos will be included in the parent's album.
If you select My Pictures at the top of the Photos tab when syncing, then you should get an album for each folder that is directly under it - so if I understand correctly what you described then that would mean an album for 2013, one for 2012 etc. And each of those should include all the photos in the subfolders under it - so 2013 would include the photos from the events and months subfolders under it.
You can't sync them separately, only the contents of the last sync remains on the iPad, by not including a folder in the next photo sync you are effectively telling iTunes that you no longer want that folder/album on the iPad so it will be removed and be replaced by the contents of the new sync (you can't delete synced photos directly on the iPad, instead they are deleted by not including them in the next sync).
The app that I use, Photo Manager Pro, allows you to select and copy a folder (via FTP), but you would need to select each subfolder individually, which if you have a lot would be time-consuming (I think that if you select '2013' it would ignore the folders beneath it). -
Search results display a block of links highlited in blue below the normal search listings
Here is the problem I am seeing:[[ NOTE: block of links appearing below each search item.]]
Live telephone support number? | Firefox Support Forum | Mozilla ...
support.mozilla.org › Home › Support Forum
Sep 22, 2010 - Mozilla do not offer telephone support. The options they offer are this forum or a text based chat service (not always open). For more details of ...
[[#2 | PR: ? | Google Cache Date: ? | Traffic value: ? | Age: ? | del.icio.us: ? | del.icio.us Page Bookmarks: ? | Stumbleupon: ? | Twitter: ? | OSE links to page: ? | OSE links to domain: ? | Blekko domainlinks: ? | Alexa: ? | Compete.com Uniques: ? | Trends | Cached: ? | dmoz: ? | dir.yahoo.com: ? | Botw: ? | Business | Whois | Yahoo position: ? | Majestic SEO linkdomain: ? | Google +1: ? | Unique linking domains to website: ? | Unique linking domains to page: ? | FB: ? | Pinterest: ? | Linkedin: ?]]
How do I remove this block of links from my results pagesHello,
'''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
''(If you're not using it, switch to the Default theme.)''
* You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
* Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
''Once you get the pop-up, just select "'Start in Safe Mode"''
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
Thank you. -
my ipod wont restart and it says error has just occured (28)
Error 23, 28, 29: These errors may indicate a hardware issue with your device. Follow the steps in this article. Also attempt to restore while connected with the white USB Dock Connector cable that shipped with your device, on a known good computer and network to isolate this issue to the device. The MAC address being missing or the IMEI being the default value, (00 499901 064000 0), can also confirm a hardware issue. Out-of-date or incorrectly configured security software can also cause these errors.
Above from:
http://support.apple.com/kb/TS3694#error28 -
Write summary result into a single pdf document
Hi, I am using Acrobat Pro 9.0 now. I have lots of pdf documents and want to check if it is over 5mb, and if it is over 5mb, open it. so I used batch processing to run a javascript code on every documents,code I paste below. And I want to know if it is possible to generate a summary report (list all the documents name which are over 5mb) in a new pdf after the js code excute on all document? Thank you very much!
if(this.filesize > 5120)
app.openDoc(this.path);The report object.
-
Forum search results have no titles?
I searched this forum and the search results have no titles, which means I can't click on them to see the posts.
I'm using Firefox on Windows 7, and sometimes search results have a clickable title/link to the post. But sometimes the results only have the author name, forum and date (not very helpful).
For example, searching for: page imposition CS5
Results show only name, forum, and date.
But if I search for: page imposition
I get post titles that I can click on. -
Write diadem search results to text file
Is there a solution within DIAdem for exporting specific information from a search result into a text file? For example: I perform a search which returns all of the files, groups, and/or channels which I want to work with; now I would like to have, say, the file paths of all the results of my search exported to a text file. Is this possible? I could not find a direct way of doing this, but perhaps a script already exists for doing stuff like this?
Hi mrclary,
I did not have this code handy, but I was able to whip it up for you. Let me know if you have any questions.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Attachments:
Search Result Paths.zip 1 KB -
Converting an Ultra Search result to a ColdFusion query
Hello,
I'm trying to convert an Ultra Search result into a ColdFusion query.
There's a java class for CF which turns a java result into a CF query, coldfusion.sql.QueryTable(java.sql.ResultSet), but is there anything which will convert an Ultra Search result to a java result or a CF query?
Thanks.HOMEWORK ALERT HOMEWORK ALERT
You can't cast from a character to a String. That doesn't work.
However, in a fit of being helpful.
Look at the constructors for the String object in the API
Link ===> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#String(char[])
char[] charA = {'H', 'E', 'L', 'L', 'O', ' ', 'W', 'O', 'R', 'L', 'D' } ;
String a = new String(charA) ;
System.out.println(a) ;There's a price for my help, and it's this. Now that you understand what you can do, is it a good idea or a bad idea and why ???
Explain. -
Web page different from opening link in a new tab or new window from Google search results
I had been using another browser for a few months because I did not want to lose the web pages I opened within Mozilla. I began using Mozilla again after saving off the web pages. I see that Google's web page pulls in search results as I type in keywords, a feature I don't remember seeing with other browsers along with a magnifying glass icon, like a look ahead of what a web page looks like before clicking on the link.
With the list of search results, I click on the link and tell Mozilla to open the link in a new tab. I see the google icon, "loading..." or "testing...", then results other than the link I wanted. Those other results maybe bing.com, http://66.45.255.230/click.php?c=0920f96609cb269f1d0045095c09, http://superpages.iarbiz.com/o6gIoMdG6so=-tQ1LeOu1v0kY34rDZ|oRy8Xt294ACu6X, Info.com, Supermedia Reverse Proxy (http://superpages.iarbiz.com/o6gIoMdG6so=-tQ1LeOu1v0kY34rDZ|oRy8Xt294ACu6X)or whatever else. As for the link, I managed to press stop before being redirected.
This is with any search results listed.
I thought it was Google.
Changed to Instant is off.
Nope. Still the same issue. Have already gone after malware. Tried resetting the redirect value to 0.
Above results also occur when opening the link in a new page via right menu click.
Copying link location and pasting in a new window is displaying results okay.
When resuming use of Mozilla, an update was available and installed. Did not experience the above issues before the update.
Running version 3.6.12. Running Win XP Pro SP3.
Had to go back to IE and Chrome/SRWare Iron.
Example:
Google keywords: rental cars
Clicked on Ad: _Avis_Rent_a_Car_, link is Avis.com
Clicked on top search result: Hertz_Rent-a-Car_-_Rental_Car_Discounts,_Coupons,_and_Great_Rates (magnifying glass), www.hertz.comDo a malware check with a few malware scan programs.<br />
You need to use all programs because each detects different malware.<br />
Make sure that you update each program to get the latest version of the database before doing a scan.
* http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
* http://www.superantispyware.com/ - SuperAntispyware
* http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
* http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
* http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]] -
Export PCUI search result to Excel over Context Menu / right mousebutton
Hello
I am using CRM 5.0 and PCUI
I want to export the search result into Excel, on Servicetickets (BUS2000116). When i press the right mousebutton on the searchresult, I get the option Export to Microsoft Excel.
When i choose this option, Excel opens and i get the error message "Unable to open ......./mainDH.do. The Internet site reports that a connection was established but the data is not available."
and the cell A1 says ExternalData_1.
In Thread Export PCUI search result to Excel, Manuel Rodriguez told "Standard Export to excel is avaible in PCUI 5.0 and dont works in PCUI 4.0.". But I still can't make it work.
Anybody an Idea how I can do it work ???
Best regards
ThomasHi Thomas,
you should not use the right click and Export to Excel. I think this is a functionality of Internet Explorer for HTML Tabes. Using that functionality you will only get the actual table exported. Do you see the Button "Download" in the Toolbar? That's the export to Excel functionality introduced in CRM 5.0.
Regards
Gregor
Maybe you are looking for
-
What I have to do to correct the following problems with Pages app. For iPad: Hesitates to display results of typing, some times for 5-6 characters; Very slow in opening files; Before opening of a specific file displays message: DOCUMENT DETAILS. SOM
-
How can I get the ruler tool to show length in inches?
This doc says the units the ruler tool shows length in are changed using preferences: http://helpx.adobe.com/en/photoshop/using/positioning-ruler-tool.html This document says the ruler tool always uses pixels unless you change measurement scale on a
-
Tween or Motion path for blank keynote with animated stars?
I create star particle effect from this tutorial: http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/ and got help from this discussion: http://forums.adobe.com/message/5518425 in order to get what I wanted. My code is: var starsArray:Arr
-
X100e keyboard/mouse issues
Hi Folks, I've been having trouble with my recently purchased x100e (running Windows 7), and I'm hoping that someone may be able to help me out. I've been looking through the forums and on the web for solutions, but no luck. Starting a few days ago,
-
HP w2338h Showing black border with HDMI
I switched to using HDMI and now my monitor has about an inch black border around the screen. I can not figure out how to get it to display fully on the screen. I went into the menu settings on the monitor and 'image control' is greyed out, not avail