لدي اعلانات نصية و انا طورت الكود لأتحكم ب النص و رالرابط
و الكود الخاص ب الأعلانات النصية
كود PHP:
include'config.php';
echo"<table border=\"1\" width=\"544\" height=\"95\">
<tr>
<td height=\"22\" width=\"544\" colspan=\"4\"><p align=\"center\">TEXT ADS </td>
</tr>
<tr>
<td height=32 width=132><p align=center><a herf=$link1>$text1</a></p></td>
<td height=32 width=133><p align=center><a herf=$link2>$text2</a></p></td>
<td height=32 width=128><p align=center><a herf=$link3>$text3</a></p></td>
<td height=32 width=123><p align=center><a herf=$link4>$text4</a></p></td>
</tr>
<tr>
<td height=\"31\" width=\"132\"><p align=\"center\"><a herf=\"$link5\">$text5</a></p></td>
<td height=\"31\" width=\"133\"><p align=\"center\"><a herf=\"$link6\">$text6</a></p></td>
<td height=\"31\" width=\"128\"><p align=\"center\"><a herf=\"$link7\">$text7</a></p></td>
<td height=\"31\" width=\"123\"><p align=\"center\"><a herf=\"$link8\">$text8</a></p></td>
</tr>
</table>";
و كود الكونفيج
كود PHP:
$link1="http://localhost";//websit link
$text1="your text ad here";//wbsite nmae
$link2="http://google.com.bh";//websit link
$text2="your text ad here";
$link3="http://ham.com";//websit link
$text3="your text ad here";//wbsite nmae
$link4="http://ham.com";//websit link
$text4="your text ad here";//wbsite nmae
$link5="http://www.google.com.bh";//websit link
$text5="your text ad here";//wbsite nmae
$link6="http://www.google.com.bh";//websit link
$text6="your text ad here";//wbsite nmae
$link7="http://www.google.com.bh";//websit link
$text7="your text ad here";//wbsite nmae
$link8="http://www.google.com.bh";//websit link
$text8="your text ad here";//wbsite nmae
لكن يصبح لي كلام بدون روابط
صورة::