Posted by anthony on 10/09/06 13:11
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>';
Navigation:
[Reply to this message]
|