PHP Variable in Select Statement

前端 未结 7 537
滥情空心
滥情空心 2021-01-13 17:50

I\'ve written this PHP-Script which is working, and now I want to change the row name into a variable to (not sure if row is correct), I mean the \"name\" from the selec

7条回答
  •  无人共我
    2021-01-13 18:06

    Wouldn't this work?

    $result = mysql_fetch_array($query);
    
    echo trim($result['name']);
    

提交回复
热议问题