📜  如何从mysql代码示例中获取每条记录的按钮

📅  最后修改于: 2022-03-11 15:05:07.499000             🧑  作者: Mango

代码示例1

"; // start a table tag in the HTML echo "" . "ID" . "" . "Date" . "" . "Type" . "" . "Size" . "" . "Currency Pair" . "" . "Entry" . "" . "Stoploss" . "". "Take Profit" . "" . "Date Close" . "" ."Close" . "" ."Profit/Loss"."" ."Copy"."Copy" ; //$row['index'] the index here is a field name while($row = mysql_fetch_array($result)){ //Creates a loop to loop through results echo "" . $row['id'] . "" . $row['date'] . "" . $row['type'] . "" . $row['size'] ."" . $row['currency_pair'] ."" . $row['entry'] ."" . $row['stoploss'] ."" . $row['takeprofit'] ."" . $row['dateclose'] ."" . $row['close'] ."" . $row['profitloss'] . "a href='copytrade.php?id=" .$row['id'].'">copy"; //$row['index'] the index here is a field name } echo ""; //Close the table in HTML mysql_close(); //Make sure to close out the database connection ?>