Cara Update Database dengan PHP
Membuat form untuk update dtabase <h4>Update</h4><form name=”update” id=”update” action=”t.php” method=”post”> <fieldset><input name=”isi” type=”text” value=”<?php echo $a;?>”/><textarea style=”width:100%” name=”def” type=”text”><?php echo $b.”<p>”.$definisi.”</p>”;?></textarea><input type=”submit” value=”Update” name=”update”/></fieldset></form> Membuat koneksi database PHP-Mysql <?phpsession_start();$hostname_kon = “Localhost”; // server$database_kon = “siswa”; // nama database$username_kon = “root”; //nama user database$password_kon = “”; // password database$kon = mysql_pconnect($hostname_kon, $username_kon, $password_kon) or die(“Could not connect: ” … Read more