What is wrong with this code that uses the mysql extension to fetch data from a database in PHP?

前端 未结 10 865
别跟我提以往
别跟我提以往 2021-01-17 06:18

I want to fetch data from a mysql table using php. Please, can anyone tell me what is wrong with this code? What is the correct code to fetch data from a mysql database:

10条回答
  •  [愿得一人]
    2021-01-17 06:37

    1. Select a database with identifier mysql_select_db("form1",$connect);

    2. Are you getting syntax error? If please put a ; next to $comment = $rows['Comment'].

    3. Also the variables should be case sensitive here

提交回复
热议问题