Hier mein fetter sql query:
Wenn ich da jetzt noch ne Abfrage für den Standort reinmache
also so:
, bekomm ich dann immer n stück weiter unten bei
einen häßlichen Fehler:Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in d:\programme\apache group\apache\htdocs\bibli\find.php on line 270
Woran könnte das liegen?
matthias
PHP-Code:
$result1 = mysql_query
("SELECT titles.titleID AS titleID, " .
" titles.title AS title, " .
" titles.subtitle AS subtitle, " .
" titles.edition AS edition, " .
" titles.year, " .
" titles.isbn, " .
" titles.comment, " .
" publishers.publName AS publisher, " .
" publishers.publID, " .
" categories.catName AS category, " .
" languages.langName AS language " .
" FROM titles JOIN tmpTitleIDs" .
" LEFT JOIN categories ON titles.catID = categories.catID " .
" LEFT JOIN languages ON titles.langID = languages.langID " .
" LEFT JOIN publishers ON titles.publID = publishers.publID " .
"WHERE titles.titleID = tmpTitleIDs.titleID" );
also so:
PHP-Code:
$result1 = mysql_query
("SELECT titles.titleID AS titleID, " .
" titles.title AS title, " .
" titles.subtitle AS subtitle, " .
" titles.edition AS edition, " .
" titles.year, " .
" titles.isbn, " .
" titles.comment, " .
" publishers.publName AS publisher, " .
" publishers.publID, " .
" categories.catName AS category, " .
" languages.langName AS language " .
" standort.name AS standort " .
" FROM titles JOIN tmpTitleIDs" .
" LEFT JOIN standort ON titles.standortID = standort.standortID " .
" LEFT JOIN categories ON titles.catID = categories.catID " .
" LEFT JOIN languages ON titles.langID = languages.langID " .
" LEFT JOIN publishers ON titles.publID = publishers.publID " .
"WHERE titles.titleID = tmpTitleIDs.titleID" );
PHP-Code:
while($row = mysql_fetch_object($result1))
Woran könnte das liegen?
matthias
Kommentar