I've tried a few things but still haven't had any luck placing ads between links (on the coop network). <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[0],$ad_network[1],$ad_network[2],$ad_network[3],$ad_network[4]; ?> Can someone explain how to add a space between ad_network[0] and ad_network[1] and so on? Thanks
Change the echo line to: echo implode (' ', $ad_network); PHP: This is becoming a popular line of code these days.
the echo or print statement in php spews out whatever is between " " before the next ; any var like $foo will simply replaced by it's value any html or other text can be included So echo "@var1 @var2"; will include a blank all html tags are possible but beware if a " is required you need to exclude it by a trailing \ so align="center" is actually align=\"center"\ concat works as well http://us2.php.net/echo M
This was how I did mine before I saw Shawn's code: echo $ad_network[0]; printf("Â Â Â "); echo $ad_network[1]; printf("Â Â Â "); echo $ad_network[2]; printf("Â Â Â "); echo $ad_network[3]; printf("Â Â Â "); echo $ad_network[4]; printf("Â Â Â "); I used alt-255 to create the spaces. lol