PHP Codes are displaying in HTML

后端 未结 1 1896
名媛妹妹
名媛妹妹 2021-01-27 08:23

I am using the following code to fetch data from a database table:



    
        Search data

        
相关标签:
1条回答
  • 2021-01-27 08:39

    Are you saving the file with the extension .php? Is PHP installed and enabled on your server?

    The answer to at least one of these is "no", because what you are seeing is the raw PHP output in the HTML - if you use the browser's View Source, you'd see that clearly.

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