How to make links out of database info?

So I have a database of links and I want to make it so when
they are displayed on the page they are clickable links. Where do I
put the href tags?
Thanks!
heres the code for the page:

Change this:
<td><?php echo $row_Recordset1['link'];
?></td>
To this:
<td><a href="<?php echo $row_Recordset1['link'];
?>"><?php echo
$row_Recordset1['link']; ?></a></td>
Brandon7777 wrote:
> So I have a database of links and I want to make it so
when they are
> displayed on the page they are clickable links. Where do
I put the
> href tags?
>
> Thanks!
>
> heres the code for the page:
>
> <?php require_once('../Connections/dbase.php'); ?>
> <?php
> if (!function_exists("GetSQLValueString")) {
> function GetSQLValueString($theValue, $theType,
$theDefinedValue = "",
> $theNotDefinedValue = "")
> {
> $theValue = get_magic_quotes_gpc() ?
stripslashes($theValue) :
> $theValue;
>
> $theValue = function_exists("mysql_real_escape_string")
> mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
>
> switch ($theType) {
> case "text":
> $theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
> break;
> case "long":
> case "int":
> $theValue = ($theValue != "") ? intval($theValue) :
"NULL";
> break;
> case "double":
> $theValue = ($theValue != "") ? "'" .
doubleval($theValue) .
> "'" : "NULL";
> break;
> case "date":
> $theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
> break;
> case "defined":
> $theValue = ($theValue != "") ? $theDefinedValue :
> $theNotDefinedValue; break;
> }
> return $theValue;
> }
> }
>
> mysql_select_db($database_dbase, $dbase);
> $query_Recordset1 = "SELECT links.link,
links.`description` FROM
> links"; $Recordset1 = mysql_query($query_Recordset1,
$dbase) or
> die(mysql_error()); $row_Recordset1 =
mysql_fetch_assoc($Recordset1);
> $totalRows_Recordset1 = mysql_num_rows($Recordset1);
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml"
><!-- InstanceBegin
> template="/Templates/index.dwt"
codeOutsideHTMLIsLocked="false" -->
> <head>
> <!-- InstanceBeginEditable name="doctitle" -->
> <title>Something in blue - Web design by Giant
Systems</title>
> <!-- InstanceEndEditable -->
>
> <meta http-equiv="Content-Type"
content="text/html;charset=utf-8" />
> <style type="text/css">
> <!--
> @import url("../Something_in_Blue/defaultblue.css");
> .style1 {
> font-size: 16px
> }
> .style2 {font-size: smaller}
> .style3 {font-size: xx-small}
> -->
> </style>
> <!-- InstanceBeginEditable name="head" --><!--
InstanceEndEditable
> --><!-- InstanceParam name="OptionalRegion1"
type="boolean"
> value="true" --> </head>
>
>
>
>
> <body>
> <div>
> <div class="top">
>
> <div class="header">
>
> <div class="left style1"> <span
class="style2">Franco-American
> Oral History Archives</span></div>
>
> <div class="right">
> <div>
> <p><img src="../orbs.jpg" width="168"
height="64" /></p>
> </div>
> </div>
>
> </div>
>
> </div>
>
> <div class="container">
>
> <div class="navigation"><a href="home.php"
title="Contact">HOME</a><a
> href="archives.php"
title="Home">ARCHIVES</a><a href="about.php"
> title="Archives">ABOUT</a><a
href="links.php"
> title="About">LINKS</a><a
href="sponsors.php"
> title="Links">SPONSORS</a><a
href="contact.php"
> title="Contact">CONTACT</a> <div
> class="clearer"><span></span></div>
</div>
>
> <div class="main">
> <div class="content">
>
> <h1><!-- InstanceBeginEditable
name="EditRegion5" -->Links<!--
> InstanceEndEditable --></h1>
> <!-- InstanceBeginEditable name="EditRegion4" -->
> <table width="467" height="59" border="0">
> <tr>
> <td width="319" height="14"> </td>
> <td width="138"> </td>
> </tr>
> <?php do { ?>
> <tr>
> <td><?php echo $row_Recordset1['description'];
?></td>
> <td><?php echo $row_Recordset1['link'];
?></td>
> </tr>
> <?php } while ($row_Recordset1 =
> mysql_fetch_assoc($Recordset1));
>>
> </table>
> <!-- InstanceEndEditable -->
> <p> </p>
> <p> </p>
> <p></p>
> <p> </p>
> </div>
>
> <div class="sidenav">
> <h2>Language Selection </h2>
> <p> <a href="home.php">English
</a></p>
> <p><a href="../FR
files/homeFR.php">Français</a></p>
> <ul>
> <li></li><li></li>
> <li></li>
> <li></li>
> <li></li>
> </ul>
>
> <h2>Archives</h2>
> <p><a href="franco.php">Franco
American</a></p>
> <p><a
href="acadian.php">Acadian</a></p>
> <p><a
href="quebecian.php">Quebecian</a></p>
> <ul><li></li>
> <li></li>
> </ul>
>
> <h2>Contact info</h2>
> <p>Click <a
href="contact.php">here</a></p>
> <p> </p>
> <ul><li></li>
> <li></li>
> <li></li>
> <li></li>
> </ul>
> <p><br />
> </p>
> </div>
>
> <div
class="clearer"><span></span></div>
>
> </div>
>
> <div class="footer">&copy; 2008 Brandon Chase
and UMaine Franco
> American Centre. All Rights Reserved.</div>
> </div>
>
>
>
>
> </div>
> </body>
> <!-- InstanceEnd --></html>
> <?php
> mysql_free_result($Recordset1);

Similar Messages

  • How to make a physical standby database in the read_only state in 11g?

    In 10g, we can make a physical standby database in the read_only state. But in 11g, no a read_only state for a physical standby database. How to make a physical standby database in the read_only state in 11g?

    Hi
    read-only mode (for 11g physical standby)
    A mode in which a database can be opened that allows queries, but disallows modifications.
    A physical standby database can be opened read-only so that queries may be performed. If a license for the Oracle Active Data Guard option has been purchased, a physical satndby database can be open while redo apply is active. This capability is known as Real-time Query.
    For more details have a look at:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/manage_ps.htm#SBYDB00706
    Hipe this Helps
    Regards

  • I am in sql plus how do I find out what database I am in?

    I am in sql plus how do I find out what database I am in? is there a sql command for that...

    select name from v$database;
    or
    select sys_context('userenv', 'DB_NAME') from dual;

  • How to make links in dynamic text?

    Hi All,
    I need to know how to make links in dynamic text. I have
    created a
    table to hold the dynamic copy, and the copy is added through
    a CMS page
    that I created. This Admin page is accessed through a
    browser, and I
    don't know how to attach a link to selected text within a
    browser. Can
    anyone point the way? It's probably so easy I'll feel dumb.
    Thanks,
    Brett

    "Brett" <[email protected]> wrote in message
    news:fpf7j6$23m$[email protected]..
    > Thanks Hunter,
    >
    > Yes, I suppose a legend on the admin page would provide
    a solution. And
    > ultimately, if the client doesn't feel confident doing
    writing the HTML
    > they would have to pay me to do it for them. OK, that
    works for me.
    The only other thing might be to use something like FCK (or
    one of the many
    others... ContentSeed, I think is one Murray mentions often)
    for the CMS,
    that would give an easier option for the end user. WebAssist
    has an
    FCK-based plug-in called iRite that can give a more
    wordprocessing-like feel
    to the field (i.e., they could just highlight the text and
    then click a
    button to add the link).

  • How do I find out my Database name

    Hi All,
    I have recently installed Oracle 10g Express Edition for Windows. Its working well but when I tried to login into my Oracle Discoverer Administration, I was asked to type in the database name in the connect filed.
    Can anyone tell me if I can use Disco Administration with Oracle 10g Express Edition? Also how do I find out my database name in the TSN file.
    Your reply would highly appreciated.

    Hi,
    The "Database Name" is actually your Database SID or the Service Name. If you have installed XE, it would be XE by default. You can check this out in Control Panel -> Services - you will notice an ORCL Service with the name appended with XE.
    XE does not come with the OLAP or Data Mining or Partitioning options & you can't use Oracle Discoverer OLAP. You can have a look at a post on the Oracle Business Intelligence Blog for more information :-
    http://oraclebi.blogspot.com/2005/11/oracle-xe-database-and-discoverer-1.html
    Regards,
    Sandeep

  • How does one find out the database name , service name in a database

    hi,
    how do u find out the database name , service name , SID in a database.
    Please reply.
    Thanks ,
    Regards,
    RC

    This particular information is available in the view V_$PARAMETER owned by SYS. But you can also login with Server Manager as user INTERNAL and run:
    SHOW PARAMETERS
    The entries pertaining to the naming of the database are:
    1. db_name
    2. db_domain
    3. db_name
    4. instance_name
    5. service_names
    GLOBAL_NAME is a static (not changing) Data Dictionary view which has just 1 attribute (column) called GLOBAL_NAME.
    When you run:
    select GLOBAL_NAME from GLOBAL_NAME;
    You are returned the full global name of the database, i.e. the db_name and the db_domain joined together by dot (.) For e.g. if your db_name = mgmt and db_domain = tech.co.in, then your global_name will be MGMT.TECH.CO.IN.
    Ciao.
    null

  • How to make use out of Kernel Reader Software Rules??

    Each of my agents have a Kernel Reader module loaded but there are only two software rules defined (rknrd105 & rknrd106). There are many other software rules available but I don't know how to make use out of them. How do I add them to the module?? Please assist.
    Thanks in advance.
    Tony

    Each of my agents have a Kernel Reader module loaded but there are only two software rules defined (rknrd105 & rknrd106). There are many other software rules available but I don't know how to make use out of them. How do I add them to the module?? Please assist.
    Thanks in advance.
    Tony

  • How to make links different colors

    I can't figure out how to make one link a different. 

    You need to define a set of link states (link, visted, hover, active) for each ID or class name required.
    Let's say you want to have red links in your #header and white links in your #footer.
    CSS:
    #header a {text-decoration:none}
    #header a:link {color:red}     /**unvisited**/
    #header a:visited {color:gray} /**visited**/
    #header a:hover,               /**on mouse over**/
    #header a:active,              /**on click**/
    #header a:focus                /**on tab key**/
        {text-decoration:underline}
    #footer a {text-decoration:none}
    #footer a:link {color:white}
    #footer a:visited {color:yellow}
    #footer a:hover,
    #footer a:active,
    #footer a:focus 
        {text-decoration:underline}
    HTML:
    <div id="header">
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    </div>
    <div  id="footer">
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    </div>
    For more on CSS pseudo classes:
    http://www.w3schools.com/css/css_pseudo_classes.asp
    Nancy O.

  • How to make links open in new window

    Is it Javascript? How do you make links open in a new
    window.. what's the code and where do you put it, how do you end
    it?

    Target box (below link box0) to "_blank"
    "BenMan 88" <[email protected]> wrote in
    message
    news:e7v4it$jfj$[email protected]..
    > Sorry, this is totally unnecessary and I hope it doesn't
    irritate anyone
    > but thank-you this posting helped me very much.
    >
    >

  • How can i wipe out my personal info from my mac

    i would like to know how i can wipe all my personalyy info from my mac

    Ace_ wrote:
    i would like to know how i can wipe all my personal info from my mac
    1: The absolute best way Grade A method would be to remove the storage drive and replace with another, melt the old drive in a +1500º F kiln, or smash it to tiny bits with a sledgehammer / hydraulic press and distribute the pieces into the trash as widespread as possible.
    Then hold c booting from a OS X install disk (10.6 or earlier if th emachine came with that) or hold option key booting from a 10.7 install USB ($69, no user ID associated) and install your OS onto the new drive and shutdown at the Welcome screen.
    2: If you don't want to replace the drive but don't want a wealthy individual, corporation or government using special equipment to read most of your data.
    Then hold c booting from a OS X install disk, (or command r booting from 10.7 Recovery) and using Disk Utility to Erase with 7x overwrite on the OS X boot partition will do. Takes many hours to complete. 
    There might be  small bits left in mapped off sectors, journaled drives, your basically trusting the drive makers / OS maker to erase your drive completely. Then reinstall your OS and shutdown at the Welcome screen.
    3: If you don't want to replace the drive, not all that paranoid, but don't want most anyone using special software like DataRescue to read your deleted data off the drive, then hold c booting from a OS X install disk, (or command r booting from 10.7 Recovery) and using Disk Utility to Erase with Zero will do. Takes about a few hours. Then reinstall your OS and shutdown at the Welcome screen.
    4: If your not the least bit concerned someone could read your deleted data, simply hold c booting from a OS X install disk, (or command r booting from 10.7 Recovery) and using Disk Utility to Erase (with Security Option will do.) Takes about a few seconds. Then quit DU, reinstall your OS and shutdown at the Welcome screen.

  • How to make links of non-text?

    Is it possible to create links out of things other than text?
    For example, I'd like to use some shapes as links (think stars on a map leading to other pages). Can that be done?

    John, I have been experiementing with a workaround with mixed results.
    Try creating your object and get it just the way you want it with text, color, etc. Then create a TEXT box. Put spaces in it and returns to get the box to the same size as your object. Then select all the spacing and use your LINK INSPECTOR to enable it as a hyperlink and link it to a BOOKMARK that you create elsewhere in your iBook (BOOKMARKS are only linked to text, so...). Make sure you remove the LINE bounding box on the text box if there's one. Then place that linked text box over the object on a top layer, select both, and GROUP them (or not) from the ARRANGE menu.
    Don't know if it will always work or not once it gets to the iPad but worth a shot.
    Summary:
    Create Object
    Create Text Box with only spaces
    Select all spaces in text box and link to pre-made bookmark
    Move text box on top of object in forward layer
    Test
    Daniel Klein

  • How do make link between query and UDF

    How do you link a query to your UDF after you created the query and the UDF?
    Also do you have to set the UDF as type "general", and "link"?
    Please take me thru step?

    oh good - a discussion about whether to use "link" or "image" when having an image connected to a product!!!
    Billy and Suda - We had fun with this one some time ago in a project collecting additional data and images for the customer's products on the market.  As we were ramping up the project, we tried both ways of connecting an image to a product and there was a few drawbacks we found with using the UDF type of "General" and "Image":
    1.  The image was placed directly on the UDF portion on the Item Master - they were working in large TIFF (?) formats and the picture just looked horrible.  The approving manager could not tell if the image should be approved for press or not.  When he double-clicked on the image in the UDF portion it brought up another SAP window that wasn't quite crystal clear.
    2.  The image took up so much room on the UDF portion of the Item Master that the data entry personnel had to constantly scroll down to enter the other data points (color, size, branded promo, mixture, etc - there were about 12 fields).  Talk about being ticked!
    3.  While using the "General" and "Link" it addressed those concerns BUT there was one extra enormous advantage with this General/Link method.  When the image was brought up, it opened up the image automatically in a standard picture editor/manager program.  If they liked what they saw, they continued foward with the approval of the image for press runs.  If they did not like the image, they were able to manipulate the image at the moment and then follow through with approval (time saver for sure!).
    I am sure it all boils down to what the customer requirements are, but some other clients I demoed this to wanted to switch immediately after seeing that!  But definitely something to think about if you are planning on connecting an image to a product...
    Oh and she really is correct, Billy - I have never heard of anyone linking a query to a "link" or "image" type...I don' t know how you would even do that as the "link" or "image" selection leads you directly into the attachment and/or storage path and location...
    take care - Zal

  • How to make call out from XI to external applications??

    Hi,
    I have XI running on my system.
    I want to know if there is any possibility to invoke
    or to make call outs from XI to external applications
    like java.If yes what is the procedure for that.
    Thanks in advance
    Sunita

    XI will need a triggering event to do this. That is, if you can send a message to XI, then using XI you can route the message to a Proxy and from the proxy (which could be a java proxy) you can make a call to a java program outside XI. But, basically, XI on its own will not make a call, but it needs a triggering message. So, you can configure a file adapter to send a triggering message from a file system to the intergration server, and configure routing rules so that the messages reaches a proxy.
    Warm regards,
    Venki.

  • How To Make Links In A .PDF Open In A New Window

    Hello,
    I am using Acrobat Pro 10 to create a fillable employment application. At the top of the main application, I want people to be able to click and be redirected to another .PDF file I have hosted on my site that they will need to fill out in addition. So, I have used the link tool, but this closes the main pdf application and opens up the new pdf in its place. This is very problematic, because it clears out all of their data in the previous main application. So, I need the link to open in a new window and not in the same one as the original form. Is this possible?
    I have tried using the Java work around explained in this article: http://mythinkpond.wordpress.com/2009/11/04/opening-a-link-in-a-pdf-document-in-a-new-wind ow/
    However, when I do this, and upload it to my site the link doesn't do anything. When you click above the word where the link should be, it doesn't show the finger pointer and doesn't do anything when clicked.
    Any ideas? I greatly appreciate any help...

    That makes sense. So I guess it looks like I have 2 options.
    1. Put the JS short code in and have it open the link in a new window if the user opens it in adobe. If a google chrome user opens it in the default viewer, they wont be able to use the link at all.
    2. Leave the link how it is, and it will be usable in both viewers, but will not open it in a new window.
    I am sureprised that opening the link in a new window isn't just an option in Acrobat Pro. I wouldn't think you'd have to make a workaround like this.
    Is there an alternative way to have a page link on the form so that people can go to another .pdf whil keeping the main one open?

  • How to make link in windows?

    Hi all,
    I have an ORACLE_HOME backup c:\oracle\ora11g with complete database setup. I want move it to a bigger disk in D:
    How can I relink D:\oracle\orac11g to point to c:\oracle\ora11g?
    In linux or unix, I can do it as #> ln -s d:\oracle\ora11g c:\oracle\ora11g
    Thanks
    Edited by: KinsaKaUy? on Jul 4, 2011 5:58 AM

    No guarantee it will work with Oracle, but check out:
    c:\>mklink
    Creates a symbolic link.
    MKLINK [[/D] | [/H] | [/J]] Link Target
            /D      Creates a directory symbolic link.  Default is a file
                    symbolic link.
            /H      Creates a hard link instead of a symbolic link.
            /J      Creates a Directory Junction.
            Link    specifies the new symbolic link name.
            Target  specifies the path (relative or absolute) that the new link
                    refers to.

Maybe you are looking for

  • Calculations in RTF Template

    Hi All, I am new to BI Publisher and I am trying to create a template that will calculate growth for various fields. The data is split like (ignore # - using to show structure of XML): <YTDKPI> ###<YTDKPI_ROW> ######<FIELD 1>(Val)</FIELD 1> ######<FI

  • Multiple Ipods on the same computer

    I have an ipod mini, as does my roommate. We both have itunes and have had no issues downloading music and transferring to our ipods. Recently, an ipod shuffle was added to the computer successfully. Now, I cannot update my iopd mini, the songs will

  • Regarding performnce issue

    Hi all Please help me this is regarding to threads performace issue. from my java application i am dumping records into Oracle database.for every 15 seconds 1000records are dumped into oracle. now i want to increase records per second while dumping i

  • Acrobat PDF plug-in is "outdated". How to update?

    Acrobat PDF plug-in is flagged as outdated by Firefox 19.0  browser. How to update?

  • Task not disappearing from UWL

    Hi all, my tasks are getting populated perfectly in the UWL but after the execution of the task it doesnot gets disappeard from the UWl however it gets deleted from backend business workplace of the user, i have checked the status of workflow after t