LoginSignup
0
0

More than 5 years have passed since last update.

久々のMy SQL

Last updated at Posted at 2018-10-18

こんばんは!

MySQLに本日は挑戦してみました。

ローカル内で複数検索の応用を

やってみようと思いまずはMySQLからさくせいすることにしました

Create database wedding;

このような感じで結婚式場検索サイトを

作成するためにデータベースを作りました。

その後、phpmyadminでテーブルを作成しました。

その時に、何かエラーがでましたが

キャプチャを撮り忘れてしまいました。

フォームも作成したのでそちらも載せます。

<!doctype html>
<head>
<title>
式場検索
</title>
</head>
<body>
    <div class="weddingsearch">
        <fieldset>
            <form action="wedding-echo.php" method="POST">
            <p>予    算:<input type="text" name="money" placeholder="予算入力"></p>
            <p>場    所:<input type="text" name="address" placeholder="住所入力"></p>
            <p>式場規模:<input type="text" name="weddingscale" placeholder="式場規模"></p>
            <p class="submit"><input type="submit" value="検索">
            </form>
        </fieldset>



    <footer>
    <p class="footer">Copyright &copy Create to October18 yukitobe</p>
    </footer>

</body>

こんな感じで複数入力させて入力したら

データベースに格納されている

データが出力されるような形で

現在考えています。

また、式場登録フォームの作成も考えています。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0