Quote
$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY weblink_datestamp DESC LIMIT 0,5".....
Quote
$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY weblink_datestamp RAND() LIMIT 0,5......
$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY RAND() DESC LIMIT 0,5");
Quote
madison wrote:
hello,
try this Code belowCode Download source$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY RAND() DESC LIMIT 0,5");
Quote
portal/maincore.php
mysql_num_rows() expects parameter 1 to be resource, boolean given Line: 268
Quote
268 $result = @mysql_num_rows($query);
Quote
$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY RAND() DESC LIMIT 0,5");
if (dbrows($result) != 0) {
openside($locale['fwl001']);
while($data = dbarray($result)) {
$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY RAND() DESC LIMIT 0,5");
if (dbrows($result) != 0) {
openside("Random Links");
while($data = dbarray($result)) {
echo $data['weblink_name'];
}
closeside();
} else {
echo "No links added";
}
Quote
afaaro wrote:Code Download source
$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY RAND() DESC LIMIT 0,5");
if (dbrows($result) != 0) {
openside("Random Links");
while($data = dbarray($result)) {
echo $data['weblink_name'];
}
closeside();
} else {
echo "No links added";
}
Quote
echo "<div class='welinkspanel'>► <a href='".BASEDIR."weblinks.php?cat_id=".$data['weblink_id']."&weblink_id=".$data['weblink_id']."' class='side' target='_blank'>";
$result = dbquery("SELECT weblink_id, weblink_name, weblink_cat, weblink_description, weblink_count FROM ".DB_WEBLINKS." ORDER BY RAND() DESC LIMIT 0,5");
if (dbrows($result) != 0) {
openside("Random Links");
while($data = dbarray($result)) {
echo $data['weblink_name'];
echo "<div class='welinkspanel'>► <a href='".BASEDIR."weblinks.php?cat_id=".$data['weblink_cat']."&weblink_id=".$data['weblink_id']."' class='side' target='_blank'>";
}
closeside();
} else {
echo "No links added";
}
Quote
But I just noticed when I do click in any of the website link it will take OK to that website but it will create an error on the ErrorLog :
portal/maincore.php
mysql_num_rows() expects parameter 1 to be resource, boolean given Line: 268
and on line 268 of maincore.php there is :
267 function dbrows($query) {
268 $result = @mysql_num_rows($query);
269 return $result;
Quote
madison wrote:Quote
But I just noticed when I do click in any of the website link it will take OK to that website but it will create an error on the ErrorLog :
portal/maincore.php
mysql_num_rows() expects parameter 1 to be resource, boolean given Line: 268
and on line 268 of maincore.php there is :
267 function dbrows($query) {
268 $result = @mysql_num_rows($query);
Well I tried with different code bu no resolution yet.
I just leave it as it this.
Many thanks for the support
269 return $result;
I think this Error Log has nothing to do with your new Panel.
take a look in your Errorlog, on which Site this Error was created.
Have you a modifying "weblinks.php" ?
check it, disable your new 5 random Weblinks Panel and delete your Errorlog.
Now open your weblinks.php and click on some Weblinks.
And finally, check your Errorlog again on new entrys.
I have just visited your website and noticed that you have a modified Weblinks.php by Spunk Weblinks with Preview
I use the same modified Weblinks.php from this Author and I get the exact same error message in the error log. But because this error has no impact on the functionality, I simply ignore them. It's just a little Bug. ;)
Category Forum
Panels and InfusionsLabels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions