TexasMd91 Posted February 11, 2007 Share Posted February 11, 2007 Alright for my site it is REALLY annoying having to change every single page when i want to change 1 thing on the side panels (ie: affiliates). My website is http://Dvclan.org So is there any way i could have a php file, lets say with the name "data.php" and inside i could have $aff1Link and $aff1Picture, $aff1Alt, and etc. and give each 1 of them data. like $aff1Link could be like $aff1Link = http://website.com and then on site i could just put <tr> <td height="15" bgcolor="#5C5E4F"><div align="center"><a href="$aff1Link"><img src="$aff1Picture" border=0 alt="$aff1Alt"></a></div></td> </tr> <tr> <td background="images/dotborder.gif" height="1"></td> </tr> Im pretty sure it will be easy to do, so can any 1 tell me how i could do this? PS: i know just alil php, thats why i dont know how Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 11, 2007 Share Posted February 11, 2007 http://php.net/require http://php.net/include Quote Link to comment Share on other sites More sharing options...
TexasMd91 Posted February 11, 2007 Author Share Posted February 11, 2007 thnx Quote Link to comment Share on other sites More sharing options...
TexasMd91 Posted February 11, 2007 Author Share Posted February 11, 2007 wait nevermind i get an error Parse error: syntax error, unexpected T_VARIABLE in /home/.express/texasmd91/dvclan.org/variables.php on line 3 My variables.php is <?php $motmpic = 'http://img176.imageshack.us/img176/2083/me1ut8.png' $motmguy = 'Ins0mnia1' $motmmonth = 'February' ?> Quote Link to comment Share on other sites More sharing options...
fert Posted February 11, 2007 Share Posted February 11, 2007 Lines end in ;'s Quote Link to comment Share on other sites More sharing options...
TexasMd91 Posted February 12, 2007 Author Share Posted February 12, 2007 alright thnx that fixxed that. I have 1 more problem. How can i put it in the middle of html? Quote Link to comment Share on other sites More sharing options...
fert Posted February 12, 2007 Share Posted February 12, 2007 <p>HTML</p> <?php echo "<p>PHP</p>"; ?> <p>More HTML</p> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.