Jump to content

URL field adding http://


antknight
 Share

Recommended Posts

This is what I came up with, it works, does it look ok?


foreach($country->children() as $dealer) {
$url = str_replace('http://', '', $dealer->website);
echo "<tr class='reviews-row1'><td><strong>{$dealer->title}</strong><br>{$dealer->map_marker->address}</td>";
echo "<td>{$dealer->telephone}</td>";
echo "<td><a href='{$dealer->website}' target='_blank'>{$url}</a></td>";
echo "<td><a href='mailto:{$dealer->email}'</a>{$dealer->email}</td>";
echo "</tr>";
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...