看板 PHP 關於我們 聯絡資訊
※ 引述《gsrr (誰要下象棋的jJBRkIxQkVF)》之銘言: : $result=mysql_query("SELECT * FORM nervebook"); : $row=mysql_fetch_row($result); : while ($row != null){ : list($id,$username,$mail_address,$date,$message)=$row; : echo <<<EOD : 出現錯誤訊息 : Warning: mysql_fetch_row(): supplied argument is not a valid MySQL : result resource in C:\AppServ\www\message\index2.php on line 16 : 請問各位大大...哪裡需要更改呢... : 還有...echo<<<EDO 這行是代表什麼意思? : 謝謝.. 1.建議翻書出來看一下 mysql 的函式使用方式 2.你應該在 mysql_query 之後跑迴圈將資料一筆一筆用 mysql_fetch_row 抓出來 3.echo <<<EDO 是跟後面的 EDO; 為一組的 只是單純的將中間包含的所有字元 output 出來 底下是 php.net 的說法 echo <<<END This uses the "here document" syntax to output multiple lines with $variable interpolation. Note that the here document terminator must appear on a line with just a semicolon. no extra whitespace! END; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.119.170.182