Hello,
Our php programmer no longer works here and I need to fix a bug on one of our intranet pages. I am mostly just a web and graphic designer and I am pretty good at mucking around in code, but haven't spent much time with php at all. I tried looking around for the answer to this in a couple books and on forums. A few things I read said I needed to escape quotes. Which I tried, but just keep getting errors and I think the if statment is messing me up.
Here's what I am working on....
If my database has an entry like www.google.com, how do I get it to output this as a link?
Here's the current code without the link output:
<? if ($news['news_website'] != "http://")
{
echo $news['news_website'];
}
?>
I know I will get better at this, so thanks in advance for your helping educate me!