Aktív témák

  • Briganti

    tag

    hm ... meg 1 kerdes ...

    most egy advanced search -n butykolok, de nem nagyon jon ossze :(

    van 4 tablam:
    author:
    -> author_id
    -> author_name
    dictionary:
    -> dict_id
    -> dict_name
    quotes:
    -> qt_id
    -> author_id
    -> quot
    -> attrib
    dict_quot
    -> dict_id
    -> qt_id


    egy formon meg lehet hatarozni mindegyiknek egyet, de en eloszor egy konkret peldat akartam kiprobalni,e s irtam egy olyan select-t hogy:

    $sel14 = mysql_query(''SELECT * FROM quote_author, quote_dictionary, quote_dictionary_quotation, quote_quotation
    WHERE quote_author.author_name LIKE 'Otto'
    AND quote_dictionary.dictionary_name LIKE 'Dictionary'
    AND quote_quotation.quotation LIKE 'stood'
    AND quote_quotation.attribution LIKE 'advertisement''');

    teszteltem, es a select le is fut helyesen, de ha fetch-elem nem ad vissza semmit ... lehetseges ezt az egesszet egy selectbe megirni, vagy csomo ciklussal s csomo mindenel le kell ellenorizni az egeszet?

Aktív témák