Zum Inhalt springen

mySQL Problem

Erstellt am 23. August 2007 · 1 Antwort · letzte Antwort am 23. August 2007

Tags: Frage

CyroTek ·
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

CyroTek ·

Okay, hab es mit ein biserl ausprobieren hinbekommen.

Scheint auch soweit 1a zu funktionieren.

Trotzdem super Forum hier, hat mir schon des öfteren einen Lösungsansatz geliefert.

Schönen Gruß und bis demnächst. =)