Getting there, thanks php~pro
Well, I got it down to this now. That takes me out of my pretected area and to my root directory, but no matter how name ../ I put in, it only gets me to my root.
echo '<a href<>"../',$web,'">'.$web.'</a>';
Again, take out the <> and put = instead.
Oh, yeah, I made it up. That's why it looks funny, but it kinda works. I am going to paste everything after my database connection:
mysql_connect("localhost",$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM business";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$first=mysql_result($result,$i,"first");
$last=mysql_result($result,$i,"last");
$company=mysql_result($result,$i,"company");
$house=mysql_result($result,$i,"house");
$street=mysql_result($result,$i,"street");
$city=mysql_result($result,$i,"city");
$state=mysql_result($result,$i,"state");
$zip=mysql_result($result,$i,"zip");
$phone=mysql_result($result,$i,"phone");
$mobile=mysql_result($result,$i,"mobile");
$fax=mysql_result($result,$i,"fax");
$email=mysql_result($result,$i,"email");
$web=mysql_result($result,$i,"web");
echo "$first $last
$company
$house $street
$city, $state $zip
Phone: $phone
Mobile: $mobile
Fax: $fax
";
echo '<a href<>"mailto:',$email,'">'.$email.'</a>
';
echo '<a href<>"../',$web,'">'.$web.'</a>';
$i++;
}
?>
That still makes the url look like w3.kaytrimbath.com/w3.google.com
Instead of w3.google.com
But the email works great.
|