function getItems(){
$config["pid_list"] = trim($this->cObj->stdWrap($this->conf["pid_list"],$this->conf["pid_list."]));
$config["pid_list"] = $config["pid_list"] ? implode(t3lib_div::intExplode(",",$config["pid_list"]),",") : $GLOBALS["TSFE"]->id;
list($pid) = explode(",",$config["pid_list"]);
$query = "SELECT * FROM tx_pdfframe_pdfs WHERE pid IN (".$pid.") ORDER BY sorting";
$res = mysql_query(TYPO3_db,$query);
$out = array();
while($row = mysql_fetch_assoc($res)){
$out[] = $row;
}
return $out;
}
}
Das ist mein Problem, ich krieg aus mir nicht begreiflichen Gründen ne Error Meldung wenn ich das so speichere.
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /html/typo3conf/ext/pdf_frame/pi1/class.tx_pdfframe_pi1.php on line 77
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /html/typo3conf/ext/pdf_frame/pi1/class.tx_pdfframe_pi1.php on line 79
Ich bin noch ein relativer Anfänger was Typo3 Extensions und PHP angeht, aber ich bin auch neugierig und wollt es halt mal probieren und ich denke, würde die Abfrage funktionieren, würde die Extension funktionieren.
Also jede Hilfe ist willkommen