mysql_select_db($database_member, $member);
$dizhi= mysql_query("SELECT * FROM member WHERE username like '"+ $row_Recordset1['articles_author'] +"'");
$row = mysql_fetch_array($dizhi);
結果報錯了
mysql_fetch_array(): supplied argument is not a valid MySQL result resource
求解決辦法
$dizhi= mysql_query("SELECT * FROM member WHERE username like '"+ $row_Recordset1['articles_author'] +"'");
$dizhi= mysql_query("SELECT * FROM member WHERE username like '". $row_Recordset1['articles_author'] ."'");
字符串連接符是 . 而不是 +