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 Link to comment https://forums.phpfreaks.com/topic/38073-solvedsimple-variable-question/ 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 Link to comment https://forums.phpfreaks.com/topic/38073-solvedsimple-variable-question/#findComment-182257 Share on other sites More sharing options...
TexasMd91 Posted February 11, 2007 Author Share Posted February 11, 2007 thnx Link to comment https://forums.phpfreaks.com/topic/38073-solvedsimple-variable-question/#findComment-182261 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' ?> Link to comment https://forums.phpfreaks.com/topic/38073-solvedsimple-variable-question/#findComment-182301 Share on other sites More sharing options...
fert Posted February 11, 2007 Share Posted February 11, 2007 Lines end in ;'s Link to comment https://forums.phpfreaks.com/topic/38073-solvedsimple-variable-question/#findComment-182304 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? Link to comment https://forums.phpfreaks.com/topic/38073-solvedsimple-variable-question/#findComment-182318 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> Link to comment https://forums.phpfreaks.com/topic/38073-solvedsimple-variable-question/#findComment-182320 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.