I have this glossary that was setup and I want to modify a bit.
Here's how...
############### ###############
printf($getWord Array["word"]);
echo "</b></dt><dd>";
printf($getWord Array["definition "]);
echo "</dd><br>";
}
############### ###############
It out puts text like this...
############### ###############
Term
Definition here here here here here here here here here here
here here here here here here here here.
############### ###############
The whole idea is to have a sweet looking glossary like nobody else
has done....here's my idea. I want the script to check the definition
value BEFORE it's output to the browser window, and "look for" the
"term" value to see if exists. If yes, then link the term to it's own
special link such as that listed below...
I want it to actually CHECK the $definition variable for the instance
of ANY of $word variables in the database table. If yes, then link
the word on output to be like this (where "underwriti ng" is the word
that was recognized):
############### ############### http://www.my-domain.com/glossary/gl...d=underwriting
.....this would link to the term underwriting
############### ###############
Can u help?? I know all you guys are smart as hell out there....I'm
just a newbie.
Thanks,
William Ashworth 1 2014
William Ashworth wrote: I have this glossary that was setup and I want to modify a bit. Here's how...
############### ############### printf($getWord Array["word"]); echo "</b></dt><dd>"; printf($getWord Array["definition "]); echo "</dd><br>"; } ############### ###############
It out puts text like this...
############### ############### Term Definition here here here here here here here here here here here here here here here here here here. ############### ###############
The whole idea is to have a sweet looking glossary like nobody else has done....here's my idea. I want the script to check the definition value BEFORE it's output to the browser window, and "look for" the "term" value to see if exists. If yes, then link the term to it's own special link such as that listed below...
I want it to actually CHECK the $definition variable for the instance of ANY of $word variables in the database table. If yes, then link the word on output to be like this (where "underwriti ng" is the word that was recognized):
############### ############### http://www.my-domain.com/glossary/gl...d=underwriting ....this would link to the term underwriting ############### ###############
You mean that, if a term on a page shows up in the glossay, you want it to
link to the glossary? Something like Astronomy.com does
( http://astronomy.com/Content/Dynamic...407vgebk.asp)?
If so, and if your page text is coming from a database, you could
explode() your page text with a space, or other non-alpahbetic character,
then print each word individually, using isset() before you do to see if
it's in the array. If it is, write the anchor tag, print the word, then
close the anchor tag. You might want to unset() the array elements as
they're used, to avoid, say, 50 links to "underwriti ng" in the same page
(Astronomy.com does this). In this case, only the first instance would be
linked.
I'm not sure how efficient this method would be for long articles - use
caution.
Also note the drawbacks of automatically linking - links can sometimes be
out of context. For example, the sentence "Sagan was seeing Druyan for
several years before they married." on Astronomy.com would link "seeing"
to the astronomical definition, which refers to atmospheric conditions.
Good luck,
Shawn (in no way associated with Astronomy.com) :o)
--
Shawn Wilson sh***@glassgian t.com http://www.glassgiant.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: point |
last post by:
Hi there..
I have the folowing array
=> property = hexonet
=> property = 2003-12-01 18:46:20.0
=> property = hexonet
=> property = 2003-12-02 02:59:15.0
=> property = hexonet
=> property = 2004-12-01 18:46:20.0
|
by: Antti Nummiaho |
last post by:
Consider the following javascript:
var temp = new Array(new Array(0))
document.writeln(temp)
temp = new Array(new Array(0,1))
document.writeln(temp)
One would assume that it would print "0 0" that is the first elements
of the arrays, but it prints "undefined 0". Why does temp return
|
by: Gactimus |
last post by:
I made the program below. It outputs the smallest number in the array. What
I would like to know is how do I output the array location. I am at a loss.
For example, since the smallest number in the array is 2, the output should
be 2 for the number and 1 for the location. If anyone could help or point
me in the right direction that would be great. Thanks.
-------------------
#include <iostream>
|
by: ritchie |
last post by:
Hi all,
I am new to this group and I have question that you may be able to
help me with.
I am trying to learn C but am currently stuck on this.
First of all, I have a function for each sort (Bubble, insertion,
selection..).
I have an array of int's and am passing them to each sort function.
|
by: ritchie |
last post by:
Hi,
I am writing to ask if anyone can see why my array is not being sorted
correctly?
It's an array of 4 elements(ints 1,2,3,4) but after calling the
selection sort
it comes back sorted as 1,1,2,4.
I have narrowed it down to the sort function. I'm almost positive
| |
by: intrepid_dw |
last post by:
Hello, all.
I've created a C# dll that contains, among other things, two functions
dealing with byte arrays. The first is a function that returns a byte
array, and the other is intended to receive a byte array as one of its
parameters. The project is marked for COM interop, and that all
proceeds normally.
When I reference the type library in the VB6 project, and write the
code to call the function that returns the byte array, it works
|
by: George |
last post by:
Sub ExcelToListBox()
Dim xRange As Object
Dim ary
Dim xValue As String
xRange = oXL.Range("A1:A9") 'has letters A-H
ary = xRange.value
xValue = ary(3, 1) 'xValue = C
Me.ListBoxPerson.Items.AddRange(ary)
|
by: inkexit |
last post by:
I need help figuring out what is wrong with my code. I posted here a
few weeks ago with some code about creating self similar melodies in
music. The coding style I'm being taught is apparently a lot different
from what the pros around here use. I really need help with debugging
some program errors more than anything, even though my coding style
might not be perfect.
Anyway here is my code. About the only things that work right are...
|
by: sandy |
last post by:
I need (okay, I want) to make a dynamic array of my class 'Directory',
within my class Directory (Can you already smell disaster?)
Each Directory can have subdirectories so I thought to put these in an
array. The application compiles but aborts without giving me any useful
information.
What I suspect is happening is infinite recursion. Each Directory
object creates an array of Subdirectories each of which has an array of...
|
by: fluk |
last post by:
Hi Guys, I hope someone can help me with this, because i'm getting
crazy to find a good way to do that!
This is what I got by querying a db.
$arr1 = array("site", "description", "area1" , "activity1");
$arr2 = array("site", "description", "area1" , "activity2");
$arr3 = array("site", "description", "area2" , "activity2");
$arr4 = array("site1", "description1", "area3" , "activity2");
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |