I want to make search page where I want to display my searched data from database in a “div”?

前端 未结 1 504
故里飘歌
故里飘歌 2021-01-29 15:17

I want to make search page(php) where I want to display my searched data from database in a \"div\"?I made a connection with database and searched for data in one phppage and cr

1条回答
  •  死守一世寂寞
    2021-01-29 16:16

    Just create a variable to store the results in this case its $data. Move your include searchdata.php to the bottom of the code so it can reconize $data. Then echo it on your html page.

    html page

    The PHP code.

    '.$Date.'
    '.$Entry.'
    '; } } else { $data = "There was no search result!";}} include 'Search.php'; ?>

0 讨论(0)
提交回复
热议问题