Jump to content

[SOLVED]Simple Variable Question


TexasMd91

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.