Pagi bank...mohon petunjuk dan tutorialnya bank, cara menghubungkan 2 komputer client dan server, agar komputer client dapat mengakses database yang ada di komputer server......

terimakasih.....

Lihat semua 1 jawaban

Silahkan login untuk menjawab!
Hai, saya mau tanya. Bagaimana cara membuat email seperti pada gmail ya?
Misalnya, setiap user yang me-reply langsung berada pada halaman email yang sama.
Silahkan login untuk menjawab!
saya mau nanya, kenapa ya data saya tidak berubah ketika saya edit? padahal saat saya klik edit, ada alert data berhasil diupdate.
ini source code edit punya saya :
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Aplikasi Rute Rumah Sakit Kota Bogor</title>
</head>

<body>
<table>
<?php
include"program/koneksi.php";

$sql = mysql_query("select * from rumahsakit") or die(mysql_error());

echo"
<tr>
<td>No.</td>
<td>Nama Rumah Sakit</td>
<td>Alamat Rumah Sakit</td>
<td colspan='2' width='50'>Aksi</td>
</tr>";
while($row = mysql_fetch_array($sql)){
	echo"<tr>";
	echo"<td>".$row['id_rs']."</td>";
	echo"<td>".$row['namars']."</td>";
	echo"<td>".$row['alamatrs']."</td>";
	echo"<td>
	<a href='program/editrs.php?id_rs=$row[id_rs]'><abbr title='edit'><img src='../gambar/edit-icon.png' width='15' height='15'></abbr></a>
	<a href='program/proseshapusrs.php?id_rs=$row[id_rs]'><abbr title='hapus'><img src='../gambar/delete.png' width='15' height='15'></abbr></a>
	</td>";
	echo"</tr>";
}
?>
</table>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Lokasi</title>
</head>

<body>
<?php
include"koneksi.php";

$id_rs = $_GET['id_rs'];

$apdet = mysql_query("select * from rumahsakit where id_rs='$id_rs'") or die(mysql_error());
$edit = mysql_fetch_array($apdet);
?>
<table>
<form method="post" action="proseseditrs.php?id_rs=<?php $id_rs ?>">
<tr>
<td>Nama RS</td>
<td align="center"><b>:</b></td>
<td><input type="text" name="namars" value="<?php echo $edit['namars'] ?>"></td>
</tr>
<tr>
<td>Alamat RS</td>
<td align="center"><b>:</b></td>
<td><textarea name="alamatrs"><?php echo $edit['alamatrs'] ?></textarea></td>
</tr>
<tr>
<td></td>
<td></td>
<td colspan="2">
<input type="submit" value="edit">
<input type="reset" value="cancel">
</td>
</tr>
</form>
</table>
</body>
</html>
<?php
include"koneksi.php";

$id_rs = $_POST['id_rs'];
$namars = $_POST['namars'];
$alamatrs = $_POST['alamatrs'];

$update = mysql_query("update rumahsakit set namars='$namars', alamatrs='$alamatrs' where id_rs='$id_rs'") or die(mysql_error());

if($update){
	echo"<script type='text/javascript'>alert('Data berhasil di update')</script>";
	echo"<script type='text/javascript'>window.location='../rumahsakit.php?menu=Rumah Sakit'</script>";
}
else{
	echo"<script type='text/javascript'>alert('Database Error')</script>";
	echo"<script type='text/javascript'>window.location='../'</script>";
}
?>

Lihat semua 1 jawaban

Silahkan login untuk menjawab!
mas mau tolong lihatin programnya dong ? sama kalo ada tambahan kasi tau mas. makasi.

[code=php]
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>form</title>
</head>
<body>
<div style="text-align: center;"><?php session_start();
if(isset($_SESSION['error'])){
$error = $_SESSION['error'];
$_POST = $_SESSION['post'];
unset($_SESSION['error']);
unset($_SESSION['post']);
}
?>
<form name="form.php" methode="post" action="save.php"> <big
style="font-weight: bold;"><span
style="font-family: Courier New,Courier,monospace;">ON-LINE &amp;
COMPUTER USERS NEEED IDENTIFICATION AND SATISFACTION SURVEY</span></big><br>
<br>
<table style="text-align: left; width: 984px; height: 60px;"
border="0" cellpadding="2" cellspacing="1">
<tbody>
<tr>
<th style="vertical-align: top; width: 77px;">Unit<br>
</th>
<td style="vertical-align: top; width: 191px;">
<select name="unit" class="required" title="Unit Harus Di Pilih">
<option value="">-- Pilih Unit --</option>
<option value="&lt;?=$unit?&gt;"></option>
<option value="ilt">ILT</option>
<option value="pte">PTE</option>
<option value="pts">PTS</option>
</select>
&nbsp; </td>
<td style="vertical-align: top; width: 321px;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<th style="vertical-align: top; width: 72px;">Nama<br>
</th>
<td style="vertical-align: top; width: 279px;"><input
name="nama" class="required" title="Nama User" size="35" type="text"><input
name="nama" id="nama"
value="&lt;?php echo isset($_POST['nama']) ? $_POST['nama'] : '';?&gt;"
type="text">
<div style="color: red;"><?php echo isset($error['nama']) ? $error['nama'] : '';?></div>
<br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 77px;"><br>
</td>
<td style="vertical-align: top; width: 191px;"><br>
</td>
<td style="vertical-align: top; width: 321px;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<th style="vertical-align: top; width: 72px;">Bulan<br>
</th>
<td style="vertical-align: top; width: 279px;">
<select name="unit" class="required"
title="Kode Unit Harus Di Pilih">
<option value="">-- Pilih Bulan --</option>
<option value="&lt;?=$unit?&gt;"></option>
<option value="januari">Januari</option>
<option value="februari">Februari</option>
<option value="maret">Maret</option>
<option value="april">Mei</option>
<option value="mei">Mei</option>
<option value="juni">Juni</option>
<option value="juli">Juli</option>
<option value="agustus">Agustus</option>
<option value="september">September</option>
<option value="oktober">Oktober</option>
<option value="november">November</option>
<option value="desember">Desember</option>
</select>
<br>
</td>
</tr>
</tbody>
</table>
<div style="text-align: left;">A. Silahkan isi pada soal-soal sesuai
pilihan Anda <br>
<br>
<table style="text-align: left; width: 100%;" border="1"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td
style="vertical-align: top; width: 24px; text-align: center;">No<br>
</td>
<td
style="vertical-align: top; width: 497px; text-align: center;">Performance
Parameters<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;">Excellent<br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;">Verry
Good<br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;">Good<br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;">Poor<br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;">Very Poor<br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;">Not
Acceptable<br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">1.<br>
</td>
<td style="vertical-align: top; width: 497px;">Apakah orang
system selalu datang tepat pada waktunya bila ada masalah<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a1" id="a1" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a1 ? 'checked="checked"' :'';?>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b1" id="b1" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b1 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c1" id="c1" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c1 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d1" id="d1" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d1 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e1" id="e1" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e1 ? 'checked="checked"' :'';?>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f1" id="f1" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f1 ? 'checked="checked"' :'';?>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">2.<br>
</td>
<td style="vertical-align: top; width: 497px;">Apakah semua
aplikasi on-line sudah user-friendly bagi anda<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a2" id="a2" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a2 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b2" id="b2" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b2 ? 'checked="checked"' :'';?>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c2" id="c2" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c2 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d2" id="d2" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d2 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e2" id="e2" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e2 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f2" id="f2" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f2 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">3.<br>
</td>
<td style="vertical-align: top; width: 497px;">Apakah aplikasi
on-line Anda menampung semua data input yang Anda butuhkan<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a3" id="a3" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a3 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b3" id="b3" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b3 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c3" id="c3" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c3 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d3" id="d3" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d3 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e3" id="e3" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e3 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f3" id="f3" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f3 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">4.<br>
</td>
<td style="vertical-align: top; width: 497px;">Apakah report
yang anda dapatkan dari online sudah mencukupi kebutuhan Anda</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a4" id="a4" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a4 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b4" id="b4" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b4 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c4" id="c4" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c4 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d4" id="d4" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d4 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e4" id="e4" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e4 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f4" id="f4" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f4 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">5.<br>
</td>
<td style="vertical-align: top; width: 497px;">Apakah anda
mendapatkan informasi atau training yang cukup tentang software dan
hardware<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a5" id="a5" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a5 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b5" id="b5" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b5 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c5" id="c5" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c5 ? 'checked="checked"' :'';?>
<br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d5" id="d5" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d5 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e5" id="e5" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e5 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f5" id="f5" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f5 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">6.<br>
</td>
<td style="vertical-align: top; width: 497px;">Menurut Anda
bagaimana software dan hardware (PC) yang telah disediakan untuk Anda<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a6" id="a61" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a6 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b6" id="b6" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b6 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c6" id="c6" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c6 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d6" id="d6" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d6 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e6" id="e6" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e6 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f6" id="f6" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f6 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">7.<br>
</td>
<td style="vertical-align: top; width: 497px;">Apakah Anda
mendapatkan bantuan penuh untuk hardware &amp; software Anda<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a7" id="a7" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a7 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b7" id="b7" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b7 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c7" id="c7" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c7 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d7" id="d7" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d7 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e7" id="e7" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e7 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f7" id="f7" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f7 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">8.<br>
</td>
<td style="vertical-align: top; width: 497px;">Apakah internal
website sudah user friendly dan mempunyai informasi yang sudah cukup
untuk Anda<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a8" id="a8" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a8 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b8" id="b8" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b8 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c8" id="c8" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c8 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d8" id="d8" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d8 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e8" id="e8" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e8 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f8" id="f8" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f8 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">9.<br>
</td>
<td style="vertical-align: top; width: 497px;">Menurut Anda
bagaimana penggabungan dan penyesuaian dari jaringan yang telah ada<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a9" id="a9" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a9 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b9" id="b9" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b9 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c9" id="c9" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c9 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d9" id="d9" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d9 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e9" id="e9" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e9 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f9" id="f9" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f9 ? 'checked="checked"' :'';?><br>
</td>
</tr>
<tr>
<td style="vertical-align: top; width: 24px;">10.<br>
</td>
<td style="vertical-align: top; width: 497px;">Menurut Anda
apakah on-line, email, dan PC dapat meningkatkan efesiensi dan waktu
Anda<br>
</td>
<td
style="vertical-align: top; width: 70px; text-align: center;"><input
name="a10" id="a10" value="excellent" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == a10 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 69px; text-align: center;"><input
name="b10" id="b10" value="verry" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == b10 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 57px; text-align: center;"><input
name="c10" id="c10" value="good" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == c10 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 46px; text-align: center;"><input
name="d10" id="d10" value="poor" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == d10 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 67px; text-align: center;"><input
name="e10" id="e10" value="vp" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == e10 ? 'checked="checked"' :'';?><br>
</td>
<td
style="vertical-align: top; width: 65px; text-align: center;"><input
name="f10" id="f10" value="not" type="radio"><?php echo isset($_POST['rad']) && $_POST['rad'] == f10 ? 'checked="checked"' :'';?><br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
B. Silahkan beritahu kami tentang kebutuhan atau harapan Anda<br>
<br>
<textarea name="harapan" id="harapan"></textarea> <br>
<br>
<br>
C. Saran untuk perbaikan dan kemajuan<br>
<textarea name="kemajuan" id="kemajuan"></textarea><br>
<br>
<input value="Save" onclick="save.php" ();="" return="" false;=""
type="button"> <br>
</div>
</form>
</div>
</body>
</html>

<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>save.php</title>
</head>
<body>
<br>
<?php if($_POST){
$conn = mysql_connect("localhost","root","");
mysql_select_db("latihan",$conn);
//menyimpan ke table form
$sql = "insert into form (unit, nama, bulan, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, harapan, kemajuan)
values ('{$_POST['unit']}','{$_POST['nama']}','{$_POST['bulan']}''{$_POST['a1']}','{$_POST['a2']}','{$_POST['a3']}','{$_POST['a4']}','{$_POST['a5']}','{$_POST['a6']}','{$_POST['a7']}','{$_POST['a8']}','{$_POST['a9']}','{$_POST['a10']}',
'{$_POST['b1']}','{$_POST['b2']}','{$_POST['b3']}','{$_POST['b4']}','{$_POST['b5']}','{$_POST['b6']}','{$_POST['b7']}','{$_POST['b8']}','{$_POST['b9']}','{$_POST['b10']}',
'{$_POST['c1']}','{$_POST['c2']}','{$_POST['c3']}','{$_POST['c4']}','{$_POST['c5']}','{$_POST['c6']}','{$_POST['c7']}','{$_POST['c8']}','{$_POST['c9']}','{$_POST['c10']}',
'{$_POST['d1']}','{$_POST['d2']}','{$_POST['d3']}','{$_POST['d4']}','{$_POST['d5']}','{$_POST['d6']}','{$_POST['d7']}','{$_POST['d8']}','{$_POST['d9']}','{$_POST['d10']}',
'{$_POST['e1']}','{$_POST['e2']}','{$_POST['e3']}','{$_POST['e4']}','{$_POST['e5']}','{$_POST['e6']}','{$_POST['e7']}','{$_POST['e8']}','{$_POST['e9']}','{$_POST['e10']}',
'{$_POST['f1']}','{$_POST['f2']}','{$_POST['f3']}','{$_POST['f4']}','{$_POST['f5']}','{$_POST['f6']}','{$_POST['f7']}','{$_POST['f8']}','{$_POST['f9']}','{$_POST['f10']}',
'{$_POST['harapan']}','{$_POST['kemajuan']}',)";
mysql_query($sql) or die('Gagal menyimpan produk');
//mencari id produk
$sql = "select max(nama) as last_name from form limit 1";
$hasil = mysql_query($sql);
$row = mysql_fetch_array($hasil);
$lastname = $row['last_nama'];
//menyimpan data buku ke table buku
$sql = "insert into form (unit, nama, bulan, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, harapan, kemajuan)
values ('{$_POST['unit']}','{$_POST['nama']}','{$_POST['bulan']}''{$_POST['a1']}','{$_POST['a2']}','{$_POST['a3']}','{$_POST['a4']}','{$_POST['a5']}','{$_POST['a6']}','{$_POST['a7']}','{$_POST['a8']}','{$_POST['a9']}','{$_POST['a10']}',
'{$_POST['b1']}','{$_POST['b2']}','{$_POST['b3']}','{$_POST['b4']}','{$_POST['b5']}','{$_POST['b6']}','{$_POST['b7']}','{$_POST['b8']}','{$_POST['b9']}','{$_POST['b10']}',
'{$_POST['c1']}','{$_POST['c2']}','{$_POST['c3']}','{$_POST['c4']}','{$_POST['c5']}','{$_POST['c6']}','{$_POST['c7']}','{$_POST['c8']}','{$_POST['c9']}','{$_POST['c10']}',
'{$_POST['d1']}','{$_POST['d2']}','{$_POST['d3']}','{$_POST['d4']}','{$_POST['d5']}','{$_POST['d6']}','{$_POST['d7']}','{$_POST['d8']}','{$_POST['d9']}','{$_POST['d10']}',
'{$_POST['e1']}','{$_POST['e2']}','{$_POST['e3']}','{$_POST['e4']}','{$_POST['e5']}','{$_POST['e6']}','{$_POST['e7']}','{$_POST['e8']}','{$_POST['e9']}','{$_POST['e10']}',
'{$_POST['f1']}','{$_POST['f2']}','{$_POST['f3']}','{$_POST['f4']}','{$_POST['f5']}','{$_POST['f6']}','{$_POST['f7']}','{$_POST['f8']}','{$_POST['f9']}','{$_POST['f10']}',
'{$_POST['harapan']}','{$_POST['kemajuan']}',)";
mysql_query($sql) or die('Gagal menyimpan data');
echo 'data tersimpan';
}

</body>
</html?>
</body>
</html>

Lihat semua 1 jawaban

Silahkan login untuk menjawab!

login

_FB_NAME_ · Aug 29, 2013
mas mo tanya .. untuk tingkat keamanan .

aman mna ea. login yg username n passwrodnya ditanamkan pda script atau yang ikut database ??
#untuk di hosting mas ....
mkc mas

Lihat semua 1 jawaban

Silahkan login untuk menjawab!
mas mau nanya, aku punya file yang ada htaccessnya.
nah tapi tiap aku mau include selalu gagal dan muncul error kaya gini.

failed to open stream: No such file or directory in

padahal file dan foldernya ada ko.

Jadi kaya folder TES, didalamnya ada folder A, folder B, didalam folder A ada A1.php dan di folder B ada B1.php, nah aku mau include A1.php di B.

biasanya kan tinggal pake
include 'A/A1.php';

tapi error gitu terus, untuk htaccesnya kaya gini
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

mohon sarannya
Silahkan login untuk menjawab!