私はSQLクエリをまとめようとしていますが、私はすべて混乱してしまいました。私は必要なものを普通の言語で書いています。PHP/MySQL - クエリの作成
select * from introles where introle = $key
then check the table 'availability' for the user_id taken from the introles table
then out of those results, check that $_POST['date'] is not equal to the date in the 'availability' table
すべてのヘルプは素晴らしいだろう:)
EDIT:
表のintrolesを次のようにテーブルの構造は以下の通り
id
user_id
introle
表の可用性が
次いていますid
user_id
date
問題のテーブルの構造リストと、反対の主な要素/基準をダンプすることができます。必要なクエリを書き出すのに役立ちます。 – DRapp
私はそれを編集しました、それが助けてくれることを願っています – Cecil
...あなたは建物の疲れたバージョンを意味しますか? – regilero