MySQL replace() question

I am trying to <cfoutput> a database table field which
may have several hundreds of words. My goal would be to have it
display on my cfm page with every word as a hyperlink. So the
example would be like this
the gray fox jumped over the red fence and it was a good time
while he did it
This above sentence would be a small example of the output
results from a longtext field in my table. I want write the code to
have that field broken up into each individual word and each word
then display with a hyperlink on it. I would have the hyperlink in
the loop code (I presume).
It is very similar to what GOOGLE does with their keyword
search results. If you look in the upper right corner area of the
page, you'll see every word you typed as a key word with a blue
hyperlink under each word.
I have an idea of what to do, but am not sure how to have the
query output parse the field as whole words and how to recognize
quotes or apostrophes in words, etc.
Please help.

well eclipse made no sense to me . but the oracle database seems powerful
I am used to running a script with \.c:\?\etc\this.sql
to build a database. Oracle does so much more. could someone explain the easy way to build a database in oracle.
I already have the database and tables made.
and what is top link?
Thanks

Similar Messages

  • Early 2008 Video Card Replacement Question

    BACKGROUND
    Hardware Overview:
    Model Name:                       Mac Pro
    Model Identifier:                  MacPro3,1
    Processor Name:                  Quad-Core Intel Xeon
    Processor Speed:                  2.8 GHz
    Number of Processors:         2
    Total Number of Cores:        8
    L2 Cache (per Processor):     12 MB
    Memory:                               10 GB
    Bus Speed:                            1.6 GHz
    Boot ROM Version:                MP31.006C.B05
    SMC Version (system):          1.25f4
    NVIDIA GeForce 8800 GT:part number 630-9898
    Chipset Model:        NVIDIA GeForce 8800 GT
    Type:                       GPU
    Bus:                         PCIe
    Slot:                         Slot-1
    PCIe Lane Width:      x16
    VRAM (Total):           512 MB
    Vendor:                    NVIDIA (0x10de)
    Device ID:                 0x0611
    Revision ID:              0x00a2
    ROM Revision:          3233
    Displays:
    SyncMaster:
      Resolution:                       1920x 1200 @ 60 Hz
      Pixel Depth:                      32-BitColor (ARGB8888)
    SyncMaster:
      Resolution:                       1920x 1080 @ 60 Hz
      Pixel Depth:                      32-BitColor (ARGB8888)
    I run one XP drive for games (primarily Flight Simulators) and music/video (CD/DVD) conversion (Danisoft/SlyFox).  Mostly stuff that I have yet to find an equivalent that will run on Mac OS.  I run one drive with Lion: MSOffice for Mac, iTunes, iPhoto, iMovie, etc (main use drive).  I run one drive with Snow Leopard: still have some stuff that requires Rosetta but is little used.  (Thinking about creating a Snow Leopard partition on my Lion drive and using my current Snow Leopard drive for additional storage.)  I run one drive thatis purely storage.  Everything is backedup to a 2TB Time Capsule using Time Machine. Op systems also backed up to Hitachi 2TB G-Drive using Carbon CopyCloner as well as all important files backed up there as well.
    Video card failed.  Ifixed it using the ‘bake it in the oven’ trick. (http://www.youtube.com/watch?v=T7um_hZYom4)  However, still thinking about replacing the card.  There are three Apple part numbers foravailable/comparable video cards.
    630-9898 – This is the part number ofthe card currently installed.  Best pricefound is $586.37
    661-4642 – This card is listed as newwith no choke.  Best price found is$242.00.
    661-4854 – This card is listed as new‘with Choke’.  Best price found is$246.00.
    Then, I see where some are replacingthe NVIDIA cards with ATI’s.
    5770 – $249.00 from Apple.
    5870 – $449.00 from Apple.
    QUESTION
    Based on my current gaming on the XPdrive and the primary use of the Mac OS drives being general purpose (with moreand more getting into iPhoto and iMovie), what are the feelings of the community on which replacement vid card to purchase?  (Note: To date I have not had any issues with noise or smoothness using the 8800.  But who knows what I might want to do in the future and I want to be prepared as best Ican without spending the $1500 on that really high end card.)
    TIA

    You should look at those Apple version of the ATI Radeon 5770 and 5780 video cards.  They are the current mac pro cards but will work in 2008's.
    The 5770 requires one aux power cable and the 5870 requires two.  Both have two mini-displayports and a dual link DVI port.

  • Very simple XSLT string replacing question

    Hi,
    This is a really simple question for you guys, but it took me long, and i still couldn't solve it.
    I just want to remove all spaces from a node inside an XML file.
    XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <root insertedtime="2008-05-01T14:03:00.000+10:00" pkid="23421">
       <books>
          <book type='fiction'>
             <author>John Smith</author>
             <title>Book title</title>
             <year>2 0  0 8</year>
          </book>
       </books>
    </root>in the 'year' node, the value should not contain any spaces, that's the reason why i need to remove spaces using XSLT. Apart from removing space, i also need to make sure that the 'year' node has a non-empty value. Here's the XSLT:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
        <xsl:strip-space elements="*"/>
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="//books/book[@type='fiction']">
            <xsl:copy>
                <xsl:apply-templates select="@*"/>
                <xsl:attribute name="id">101</xsl:attribute>
                <xsl:call-template name="emptyCheck">
                    <xsl:with-param name="val" select="year"/>
                    <xsl:with-param name="type" select="@type"/>
                    <xsl:with-param name="copy" select="'true'"/>
                </xsl:call-template>
                <xsl:value-of select="translate(year, ' ', '')"/>
            </xsl:copy>
        </xsl:template>
        <!-- emptyCheck checks if a string is an empty string -->
        <xsl:template name="emptyCheck">
            <xsl:param name="val"/>
            <xsl:param name="type"/>
            <xsl:param name="copy"/>
            <xsl:if test="boolean($copy)">
                <xsl:apply-templates select="node()"/>
            </xsl:if>
            <xsl:if test="string-length($val) = 0 ">
                <exception description="Type {$type} value cannot be empty"/>
            </xsl:if>
        </xsl:template>
    </xsl:stylesheet>The 'emptyCheck' function works fine, but the space replacing is not working, this is the result after the transform:
    <?xml version="1.0" encoding="utf-8"?>
    <root insertedtime="2008-05-01T14:03:00.000+10:00" pkid="23421">
       <books>
          <book type="fiction" id="101">
             <author>John Smith</author>
             <title>Book title</title>
             <year>2 0 0 8</year>2008</book>
       </books>
    </root>The spaced year value is still there, the no-space year is added outside the 'year' tags'
    anyone can help me, your help is extremely appreciated!
    Thanks!

    You should add a template for 'year' :<xsl:template match="year">
    <year><xsl:value-of select="translate(.,' ','')"/></year>
    </xsl:template>and remove the translate call in the 'book' template.
    It would be better to add a 'priority' attribute at each template so it would be explicit which template to use because match="@*|node()" could be interpreted by another transform engine as the unique template to be used !

  • MySQL /JDBC Question

    I began playing with JDBC a few days ago. I set up a database using mySQL and wrote a simple java program that will connect to it. Works good from the computer that holds the database.
    I try and run the same program from my secondary computer which does not have mySQL or ODBC mySQL drivers, I get com.mysql.jdbc.Driver for an error message. (Trying to access the database on my main computer via ip/databasename)
    My Question is, do you HAVE to have mySQL or Connector/ODBC installed on a computer if you wish to connect to a database on other computer??
    Here's where it prints the error message...
    try
    Class.forName("com.mysql.jdbc.Driver");
    catch (Exception e)
    JOptionPane.showMessageDialog(null, "ERROR = " + e.getMessage());
    I use this as my url..
    private final String url = "jdbc:mysql://122.122.122.122:3306/test123";
         

    Say I want to make a simple web applet that will
    access a database on my computer. The only way my
    vistors to my website will be able to access the
    database via the web applet is by having mySQL JDBC
    driver installed on their computers?yes.
    however.
    you can package up the JDBC driver as part of your jar with your applet so it doesn't require the user to "install" anything. it's just part of your applet.

  • Picked up iphone #3, (3rd replacement) question and observation

    Ok, working on iphone #3 (first one had battery issues, second one had display issues).
    Question: Under my system info (call 3001#12345#), my new phone says firware.
    I could have sworn my previous phones said firmware (with the 'm' included).
    Anyone mind checking their phone and seeing what it says ?
    So this new phone has a '7' series LCD, my first one had a 5, the second one was another '7' series.
    Ive noticed that on this new phone, the display is noticably brighter than the second phone I had that was a '7' series. The brightness level at the 1/4 make is eqaul to what the brightness was at the 1/2 mark on the previous phone.
    Pretty weird. Wish they would have gotten these inconsistencies and other things ironed out prior to launch. Two phone replacements in less than a month is ridiculous.

    Yeah i just checked mine and it says firware. and my lcd panel id is 5755136. No clue what any of that means lol

  • IBook G4 Keyboard Replacement Question

    I need to replace the keyboard on my iBook G4 14" 1.42GHz which I bought in Sep 2005.
    However, I can't figure out which replacement keyboards online are compatible.
    The bar code number on the keyboard is KY5322DDTGKA.
    I see sellers saying that their replacement keyboards are compatible with p/n 922-6637, 922-6189, 922-6913, PBF8415 for instance. I can't figure out though if my iBook is compatible with this.
    Can someone give me the correct Apple part number for a replacement keyboard that is compatible with my iBook?
    Thanks

    mac-question:
    Welcome to Apple Discussions.
    iFixit lists Apple part numbers, then says, this keyboard works in all G4 14" iBooks.
    PowerBook Medic also suggests the part is interchangeable.
    PowerBookTech offers these links which you can check out.
    Be sure you call or email and ask questions before you buy, to be sure you are getting the right part.
    cornelius

  • Quick MySQL Indexing question

    Hi all,
    I know this is not strcitly a JDBC problem, but i was wodering if you have any ideas anyhow...
    I've implemented an Index on two of my columns in a table in my MySQL db. My question is, when i insert new rows into the database, is the index automatically updated? If not, how do I go about updating the Index?
    Many thanks,
    BBB

    I thought the database would manage that for you. AFAIK, you don't have to do anything. That's the way it is in Oracle. I thought that was true for all RDBMS. - MOD

  • Mysql database question

    Let's say that I am making a java program that connects to a Mysql database and uses the database "MyDatabase".
    Forgive me, but I am relating this to a Microsoft Access database.
    The database is not on a network, but is (or will be installed) on the user's machine. In otherwords, the database will be on the user's machine and the changes to the database will only affect that user.
    If I am to let a user use this program, will they have to also have Mysql installed for the program to access the database and pull information from it?
    --Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Let's say that I am making a java program that
    connects to a Mysql database and uses the database
    "MyDatabase".[snip]
    The database is not on a network, but is (or will be
    installed) on the user's machine.[snip]
    If I am to let a user use this program, will theyhave
    to also have Mysql installed for the program toaccess
    the database and pull information from it?Yes.
    (if you are asking if the code could directly
    access/manipulate MySQL datafiles without going
    through the MySQL program, I suppose in theory you
    could, but I seriously doubt you really want to)The reason being is that it would be a client database for their own use, as oppose to sharing the database with others.
    In any case, Thanks!
    Next question: is there any place where I could go to find code that would treat the Mysql database as a client database (so far, the code that I found requires Mysql to be installed and running in the background on the user's machine)?

  • Mysql charset question

    well I just got Mysql Browser query and I was modifying some of the variables inside the table from varchar to longtext and it ask me for the charset. So my question is: Which one should I use ? The application its used on a spanish enviroment.
    Thanks!

    Uhh, one of the sets that contains spanish characters, I suppose...
    http://dev.mysql.com/doc/mysql/en/charset-charsets.html
    looks like your choices are some universal charsets (utf8 and ucs2) and some "western" sets. You probably ought to pick a charset that also has a spanish collation (if you want to do native-language sorting).

  • After boot drive replacement questions

    My boot drive, on which the Lightroom 5 software was located, failed and I just got the boot drive replaced and downloaded Lightroom 5.  Fortunately my Lightroom 5 Catalog Previews, Catalog Preview.Irdata and all important Lightroom Library were located on a separate drive that was not impacted by the boot drive failure.  How do I go about linking those files to the Lightroom 5 I just reinstalled? 

    Apparently the computer repair place saw fit to rename the drives that were not impacted in any way by the boot disk failure.  So when I double clicked the catalog I ended up with all questions marks under folders in Lightroom.  I have googled looking at "find missing folders"  and "synchronize" and found nothing that makes obvious sense to me.   When I tried the missing folders option I get a message that "the selected folder or one of its subfolders is already in Lightroom. Do you want to combine these folders"   And then gives me the option to merge or cancel.  I have chosen cance as this doesn't sound right.  Any more help would be appreciated. 

  • WildCard Find & Replace Question

    Hey, Forum;
    I've just inherited a site with over 800 image tags, none of which have any Alt attributes, not even empty ones. I want to start fixing the problem by doing a find and replace on all image tags, dropping an empty alt="" after each image path. All image paths being different, I'd start with this (Find):
    <img src="[^"]*"
    with the intention of replacing all results with a space and alt="" after the existing string. Problem is, when I try it with this (Replace):
    <img src="[^"]*" alt=""
    the replacement string is literal... all img src= paths will be replaced with "[^"]*". The question is, is there a way to use a wildcard in the replace function that leaves the existing code in place?
    Thanks much.
    Cayce

    Cayce,
    Ctrl+F:
         Find in:     Current Document (to test)
         Seach:     Specific Tag:        img
         Action:     Set Attribute:          alt          To:  #
    Replace All.
    If this works as it should, you can Find in: Entire Local Site Folder but be sure to backup your site files first because you cannot undo this process.
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Power Cord slightly Broken...Replacement Question/Ideas

    Hello again everyone...
    I have a question about the power cord on my 17" Powerbook G4.
    I went to charge it up yesterday and the cord, while still attatched to the plug-in, is really only hanging on by wires.
    I unplugged it from the computer and am still thinking about getting a replacement, even tho the Apple adaptor through the store is very low rated. I kinda don't want to buy a third party one but will if i have to.
    I guess I am wondering if the power adaptor to my 2001 15" Powerbook Aluminum G4 would work on this here laptop.
    I have the power cord with the round wrap around and I have two for my non-functioning second laptop.
    Any help would be greatly appreciated.

    Yep. Getting this error message again, looks like I have to get my 3rd cable. The cord becomes twisted, the connection at the very end bulges out (see below of my cable)
    My first cable (connected to my Mac) was giving me the following error "Because a USB was drawing too much power..." I thought the issue was my new phone or my Mac - this was back in mid October, but figured out the cable broke.
    Simply put -  These Lightning cables are flawed, I personally never had this issue with older 30 Pin connections.

  • Ipod touch 4g replacement questions

    My ipod touch 4th gen 16 GB has a nearly unresponsive home button and i would like to replace it. On the apple website it says it would be $100. I was just wondering if apple could also change the color of my black ipod to white in this process also. The last question I have is is it worth to just get the touch 5 and if so, will my current ipod have a trade in value at apple or will it give a discount towards the touch 5? Thanks!

    If you take the device in for out of warranty replacement, they will replace it with an in-kind device. Exactly the same as the one you brought in. They will not change colors or capacity. If you want to do that, then you would want to sell the old device and purchase a new one.
    As far as trade-in, Apple does not provide a trade-in program, but they do have a recycle program. It will provide a minor amount for your device and you could use that towards a new device if you wish.

  • Photosmart 7525 cartridge replacement question

    I bought this printer at Costco and it comes with 5 ink cartridges (cartridge #564). The ink replacement packs at Costco only have 4 cartridges in it (does not include the largest cartridge to the far right). Does this 5th cartridge need to be purchased separately? The 4 pack I purchased says it is for the correct model. Thanks.
    This question was solved.
    View Solution.

    Hi,
    Yes, you need to buy the black ink cartridge for the far right slot, it's a bit "fatter" than others.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Iphone replacement questions

    My phone has been freezing up for over a month, for example, if i use it for a longtime and decide to click the homebutto  For example the whole phone wi freeze nothing will work the home button nor lock button. I have dents and scruffs around the phone but those were months and months before i started getting hardware problem my phone also drains battery. I have warrAnty till september, can they replace my phone?

    Only Apple can answer your question. Make an appointment at the Genius Bar at your local Apple Store or use the Contact Us link at the bottom right of every page.

Maybe you are looking for

  • Using the radio button component to go to a frame on a MovieClip

    hello, I am using the radio button component in Flash with a continue button. When the user clicks their option in the radio button and then clicks continue, I want it to go to a movieClips Specific frame. Here is the breakdown and the script I have

  • How do I get my Mobile Me back on desk top?

    Since downloading Lion I have a constant message stating that it has trouble connecting to the server. Url does not support "file". My .me drive is no longer visible on my desktop. Any help?

  • Conflicts with ATI Radeon 5770?

    Hello, I am using a Mac Pro 3.1, 2x2.8 quad core Xeon, with OSX 10.6.7.  I recently upgraded to a ATI Radeon HD 5770 in slot 1 and put my original ATI Radeon 2660XT in Slot 4 to run an older DVI monitor.  It ran ok for a while, but my computer starti

  • Schema with carriage return

    I would get the batch file with details of individual jobs as the output schema. The xml file looks alright. However when opened in notepad does not come with carriage return included. I know that we can include child delimiter if it's an input flat

  • Comments Drop Behind Form Field

    I have forms that I created using Adobe XI Pro and want the end user to provide comments to the forms in PDF when necessary.  However, when a comment is inserted using either Reader or Pro, the comment drops behind the field in the final version and