Hi friends i am learning php now when i started my website which use php script

i am creating a page which will consist of my friends links

So I searched in my scripts forum and got this solution

step 1 : create links.tpl and insert {$my_content} and save it in templates folder.

step 2 create links.inc.php in root of website and insert

<?
ob_start();
----Your Links Here -----------
$my_content = ob_get_contents();
$smarty->assign(“my_content”, $my_content);
ob_clean();
?>


But when i insert my links it gave errors.

i want to insert these link

<a href="http://www.onlinetvjunction.com/" title="Live Tv Online" target="_blank">Online Tv</a><br>Watch your favorite TV channels live online

Please help me to solve this.............

Recommended Answers

All 2 Replies

<a href="http://www.onlinetvjunction.com/" title="Live Tv Online" target="_blank">Online Tv</a><br>Watch your favorite TV channels live online

You can use this code in your links.tpl file whereever you wnat.


Please use code tags to post your codes.

i made superfriends.tpl

and inserted

{$my_content}
<a href="http://www.onlinetvjunction.com/" title="Live Tv Online" target="_blank">Online Tv</a><br>Watch your favorite TV channels live online

and in superfriends.inc.php

<?
ob_start();
$my_content = ob_get_contents();
$smarty->assign("my_content", $my_content);
ob_clean();
?>

Did i have done right??

coz its not giving result

u can check here

http://www.freewallpaperwebsite.com/superfriends

its saying Page not found

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.