Hallo werte Dragonfly Gemeinde
Für meine Webseite nutze ich das CMS von Dragonfly, die neueste Version.
Gleichzeit habe ich das
Modul WeblinksPro implementiert. Auf den ersten Blick scheint alles OK. Ruft man allerdings dann einen konkreten Link auf, erhalte ich bloss leere Zeilen.
In den Mails finde ich dann eine
SQL-Error-Meldung mit dem Worlaut
Array:
On /WeblinksPro/l_op=viewlinkdetails/lid=.html
While executing query "SELECT title FROM cms_wlpro_categories WHERE cid="
the following error occured: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
In: /[MEIN SERVER-ROOT]/modules/WeblinksPro/viewlink.inc on line: 193
Ich habe in Linie 193 im File viewlink.inc nachgeschaut. Ich seh keinen Fehler, und Ihr?
Array:
[186] OpenTable();
[187] $voteresult = $db->sql_query("select rating, ratinguser, ratingcomments FROM ".$linksprefix."_votedata WHERE ratinglid = $lid",false,__FILE__,__LINE__);
[188] $totalvotesDB = $db->sql_numrows($voteresult);
[189] $transfertitle = ereg_replace ("_", " ", $ttitle);
[190] $displaytitle = $transfertitle;
[191] $result = $db->sql_query("SELECT * FROM ".$prefix."_wlpro_links WHERE lid=$lid",false,__FILE__,__LINE__);
[192] list($lid, $cid, $sid, $title, $url, $description, $date, $name, $email, $hits, $submitter, $linkratingsummary, $totalvotes, $totalcomments, $image) = $db->sql_fetchrow($result);
[193] $result2 = $db->sql_query("SELECT title FROM ".$linksprefix."_categories WHERE cid=$cid",false,__FILE__,__LINE__);
[194] list($cattitle) = $db->sql_fetchrow($result2);
[195] $url = shrink_url($url);
[196] echo '<table border="0" width="100%" cellspacing="0" cellpadding="0">
Falls jemand dasselbe Problem lösen konnte, oder einen Lösungsvorschlag hat, freue ich mich für eine entsprechende Nachricht!