Hi to all!
With your past help I make a new block in wich you can see last articles
I inserted in my phpnuke. You can see it at http://www.italialibri.org,
under the title.
But I have a problem: I can see new articles, but only for the sections
listed in the block. The idea is to change also the sections, joined
with the new articles inserted in the sections itself.
So, I have always the same sections in the block! Can anyone help me?
This is the code I used (I don't report html tag and global vars):
function listsections() {
[...]
$result = sql_query("sele ct secid, secname, image from
".$prefix."_sec tions order by secid LIMIT 7", $dbi);
[...]
while (list($secid, $secname, $image) = sql_fetch_row($ result, $dbi))
{
echo "<a
href=\"modules. php?name=$modul e_name&op=lista rticles&secid=$ secid\"><img
src=\"images/sections/$image\" border=\"0\" Alt=\"$secname\ "></a><br>";
listarticles($s ecid);
}
}
Function listarticles works fine, so I don't think the problem is
here... When I order sections by secid, how to tell the script that I
want only updated sections? Hope I explained the problem: my english is
not very good!
Thank for your help!
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
With your past help I make a new block in wich you can see last articles
I inserted in my phpnuke. You can see it at http://www.italialibri.org,
under the title.
But I have a problem: I can see new articles, but only for the sections
listed in the block. The idea is to change also the sections, joined
with the new articles inserted in the sections itself.
So, I have always the same sections in the block! Can anyone help me?
This is the code I used (I don't report html tag and global vars):
function listsections() {
[...]
$result = sql_query("sele ct secid, secname, image from
".$prefix."_sec tions order by secid LIMIT 7", $dbi);
[...]
while (list($secid, $secname, $image) = sql_fetch_row($ result, $dbi))
{
echo "<a
href=\"modules. php?name=$modul e_name&op=lista rticles&secid=$ secid\"><img
src=\"images/sections/$image\" border=\"0\" Alt=\"$secname\ "></a><br>";
listarticles($s ecid);
}
}
Function listarticles works fine, so I don't think the problem is
here... When I order sections by secid, how to tell the script that I
want only updated sections? Hope I explained the problem: my english is
not very good!
Thank for your help!
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Comment