Cant seem to EDIT/MODIFY my php table by id

前端 未结 2 1475
误落风尘
误落风尘 2021-01-27 22:10


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-27 22:34

    NOTE: mysql_* deprecated, so try to use PDO or mysqli_*.

    Simple way:

    " ;
            header("Location: databse.php");
         }
         mysql_close($con);
    } 
    

    YOUR PHP:

         while($row = mysql_fetch_array($result))
     {      $spaces = "    ";
                echo "";
            echo "" . $row['ID'] ."";
            echo "" . $row['Name'] . $spaces."";
            echo "" . $row['Cause'] . $spaces."";
            echo "" . $row['Symptom']. $spaces.""; 
            echo "" . $row['Gene_affected'] . $spaces."";     
            echo "";
            echo "Delete row".$spaces."";
    
            echo "";
            echo "modify".$spaces."";
          echo "";
      }
    

提交回复
热议问题