Filling html forms with mysql data using php coming up null

前端 未结 2 1440
星月不相逢
星月不相逢 2021-01-29 11:45

I am trying to fill a html form with data being received out of my mysql database. However I cannot set the forms to display on-load the variables being extracted from the datab

2条回答
  •  情歌与酒
    2021-01-29 12:34

    You have syntax error in your mysql query. You have not place field or columns name or (*) for all columns to extract.

    Try like this..

    $query = "SELECT * FROM character_tbl WHERE character_player ='".$_SESSION['user']."'";
    

提交回复
热议问题