Page 2 of 2

Re: Using "include"

Posted: Wed Aug 17, 2011 12:56 pm
by digdigdig
Caught that too! Thanks.

One last thing. When the information renders in the table on the page the website address (www.example.com) does not appear as a hyperlink. Is there any formatting that would make this a link instead of just text?

Again, Thanks.

Re: Using "include"

Posted: Wed Aug 17, 2011 1:04 pm
by phphelpme
Yeah sure,

Code: Select all

echo "<a href=\"http://".$row['Website']."\">".$row['Website']."</a>";
Notice I have placed the http:// in the echo statement so if you already place the http:// reference in your links that are saved to your database then remove the http:// from the above code and everything should work just fine.

If you want them to open up in a new window then use the target="_blank" attribute:

Code: Select all

echo "<a href=\"http://".$row['Website']."\" target=\"_blank\">".$row['Website']."</a>";
Best wishes

Re: Using "include"

Posted: Wed Aug 17, 2011 1:11 pm
by digdigdig
Yeah! Very exciting when everything works!!