NOTE: Fixed sorry!!!, being stupid and not having "http://" at beginning of the url haha.
Hi, i need help with this, everything is fine on it except one thing, the website URL carries on from the website i am on, such as:
want just:
www.jamhoperation.com
but getting:
www.infordesign.co.uk/www.jamhoperation.com
i want it to just have the first one, any way i can create this, this is my code
<?php
$con = mysql_connect("host","a3127580_Tables","password") ;
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("a3127580_Tables", $con);
$result = mysql_query("SELECT * FROM webDesign ORDER BY ID");
while($row = mysql_fetch_array($result))
{
echo "<table style='border: 1px solid #999; width: 100px; background-color: #f9fbfd; color: #222;'><tr><td style='border: 1px solid #999; color: #222; font-size: 12px;' align='center'>".$row['webName']."</td></tr><tr><td><a href='" . $row['webWeb'] . "'>";
}
echo "<img src='../images/jamHop.png.png' style='width: 100px; height: 100px; border: 0px;' /></a></td></tr></table>";
mysql_close($con);
?>
thank you for all your help 
Last edited by lynxus; 12-10-2010 at 12:18 PM..
Reason: Removed private info
|