PHP Links

hello, my question is i have a .php file that i update and it places info on all my pages so i dont have to edit all my web pages. the code is basic

[code]// Movies in theaters
$movie1 = “movie”;
$movie2 = “movie”;
$movie3 = “movie here”;
$movie4 = “movie”;
$movie5 = “Movie”;
$movie6 = “movie”;

// Your Shourts
$short1 = " ";
$short2 = " ";
$short3 = " ";
$short4 = " ";
$short5 = " ";
$short6 = " ";
// Reviews
$review1 = " “;
$review2 = " Very Soon!”;
$review3 = " ";
$review4 = " ";
$review5 = " ";
$review6 = " ";[/code]

The prob is i want to ad links to the movie tital that show up. how can i do this…

You can do this:
[php]
$movie1 = “<a href=“http://link1.com”>movie”;
$movie1 = “<a href=“http://link2.com”>movie”;
[/php]
(use backslashes to escape double quote within string bounded by double quotes)

Or use single quotes:
[php]
$movie1 = ‘movie’;
$movie1 = ‘movie’;
[/php]
(but in this case you will need to escape any single quote within movie title like this ’ )

Sponsor our Newsletter | Privacy Policy | Terms of Service