Returning a URL from a user search



I am returning page results from a form. 3 fields need to be returned:

Companyname
address1
webpage

This is an example of what I need returned:

Grey's Living Spa
9200 Anylane Rd., Columbus, OH 12345
[visit this site]

The companyname and address1 are displaying, but I need the correct
code to put that webpage (the mysql fieldname is 'webpage') in the
correct href tag in php.

Code to date:
//$row = $result->fetch_assoc();
$row = mysql_fetch_assoc($result);
echo '<p class="blue3"><strong>'.($i+1).' ';
// display the Company
echo htmlspecialchars(stripslashes($row['companyname']));
echo '</strong>';
echo '<strong><br /> ';
// dipslay the Address
echo stripslashes($row['address1']);
echo '<strong><br /> ';
// display a link to the company's site
echo '<br>';

echo '</p>';

.



Relevant Pages

  • displaying filenames as links on a web page
    ... I want to be able to display all the ... files in a directory as links on webpage so that the user can just ... click the link to download the appropriate file. ... echo ''; ...
    (comp.lang.php)
  • Re: Need Enter key to trigger post
    ... When I used to use FrontPage (a few weeks ago before downloading Visual Web Developer 2008 Express), all I did was insert a button on a webpage and it defaulted to be a submit button as well as automatically created a form. ... generally display at the top of the page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newbie: image problems again
    ... path to the ImageUrl property. ... But the webpage doesn't display the image. ... browser displays the standard image telling that image not found / ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newbie: image problems again
    ... path to the ImageUrl property. ... does this variable "Profile.UserName" really exist when you try to load ... But the webpage doesn't display the image. ...
    (microsoft.public.dotnet.framework.aspnet)
  • IWebBrowser2 doesnt seem to be destroyed correctly - remaining connections
    ... We have created an application which purpose is to display, ... a set of webpages displayed inside the IWebBrowser2 control. ... Each time a new item (webpage) from the list has to be played, ... Yet we tried to kill any http connections using for ex sysinternals ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)