Returning a URL from a user search
- From: "anthony" <newton.mo@xxxxxxxxx>
- Date: 9 Oct 2006 06:11:28 -0700
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>';
.
- Follow-Ups:
- Re: Returning a URL from a user search
- From: Pedro Graca
- Re: Returning a URL from a user search
- Prev by Date: Re: How to hide username / password when using FTP functions
- Next by Date: Re: backup on another server
- Previous by thread: Re: backup on another server
- Next by thread: Re: Returning a URL from a user search
- Index(es):
Relevant Pages
|