Hello,
The first site is: Health and healers directory, I am trying to display data from Sure Tips Article Directory in a block. I did create a script like such:
For and other of my Indexu (v 3.2) but that same script that I did call block.article.html for Indexu v 5.4 does not work. Why?Code:<? $dbServer = "mysql"; $dbHostname = "localhost"; $dbUsername = "****"; $dbPassword = "****"; $dbName = "****"; mysql_connect($dbserver, $dbUsername, $dbPassword) or die ("UNABLE TO CONNECT TO DATABASE"); mysql_select_db($dbName) or die ("UNABLE TO SELECT DATABASE"); $sql = "SELECT * FROM idx_link WHERE suspended=0 and category_id=59 OR category_id=149 ORDER BY RAND() limit 1"; $result = mysql_query($sql); ?> <div class="block_small_title">Related Articles</div> <div class="block_small_content"> <div class="block_small_content_text"> <? if ($myrow = mysql_fetch_array($result)) { do { $link_id=$myrow["link_id"]; $title=$myrow["title"]; $description=$myrow["summary"]; $url=$myrow["url"]; $title_mod=$myrow["url_name"]; $newtitle = wordwrap($title, 25, "<br />\n"); $descrip150=substr($description,0,100); $newdesc150 = wordwrap($descrip150, 25, "\n", 1); echo "<BR><font face=\"Verdana\"><span style=\"font-size:8pt;\"><a href=\"http://www.sure-tips.com/detail.php?id=$link_id\"><b>$newtitle</b></a>"; echo "<BR>$newdesc150 ...<a href=\"http://www.sure-tips.com/detail.php?id=$link_id\">more</a><br></span></font>"; } while ($myrow = mysql_fetch_array($result)); } ?> <div> <a href="http://www.sure-tips.com/disease-illness/">More related articles</a> </div> </div> </div>
Note that both database (SURE-TIPS and HEALTHANDHEALERS) reside in the same server but are two separate database. Any help?



