You are here: Returning a URL from a user search « PHP Programming Language « IT news, forums, messages
Returning a URL from a user search

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация