| Author | Message |
|---|---|
|
ZeDs Junior Member ![]()
|
PHP dot Net
ZeDs
|
| Offline | Send Message Email Homepage Report Quote |
|
Ardni Junior Member ![]()
|
<?php
echo "PHP dot NET"; ?>
.::Ardni.com::.
|
| Offline | Send Message Email Homepage Report Quote |
|
Ardni Junior Member ![]()
|
Untuk menampilkan waktu WIB (GMT +7):
<?php $timezone = +7; $time = gmdate("D, d M y H:i", time() + ($timezone * 3600)); echo$time; ?> [Last edited by Ardni on Sun, 06 Jan 08 22:29, edited 2 times in total]
.::Ardni.com::.
|
| Offline | Send Message Email Homepage Report Quote |
|
Ardni Junior Member ![]()
|
.::Ardni.com::.
|
| Offline | Send Message Email Homepage Report Quote |
|
ZeDs Junior Member ![]()
|
Test bbcode lg..
Enesis.org Enesis.org Enesis.org
ZeDs
|
| Offline | Send Message Email Homepage Report Quote |
|
RAMD Newbie Member ![]()
|
Jd mksd thread ini apa neh ? php dot net ? Apa descriptionnya?
|
| Offline | Send Message Email Homepage Report Quote |
|
raden Junior Member ![]()
|
test
|
| Offline | Send Message Email Report Quote |
|
grazzer Newbie Member ![]()
|
#Buat bikin Kalkulator,
simpan dgn nama "calculator.php"# <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf=8"> <title>GRAZZER Calculator</title></head><body>KALKULATOR<br><form action="./test.php" method="post"> Angka 1:<br><input type="text" name="a" format="*N"/> <select name="option"> <option value="s">+ <option value="v">- <option value="u">× <option value="d">÷ </select> <br> Angka 2:<br><input type="text" format="*N" name="b"><br> <input type="submit" value="="> </form> <? /*Powered by GRAZZER site grazzer.0fees.net*/ $a=$_POST['a']; $b=$_POST['b']; $v=($a-$b); $s=($a+$b); $u=($a*$b); $d=($a/$b); echo "<b> Hasilnya: ", $$_POST['option'], "</b><br>n"; echo '<br><a href="/index.php">Main menu</a>'; ?> <br> © grazzer 2008 </body></html> |
| Offline | Send Message Email Report Quote |
|
ZeDs Junior Member ![]()
|
Buat ngitung persamaan linear.
Boleh nyomot dr blog org, cm lupa alamatnya.. <html> <head> <title>Solusi Persamaan Linear</title> </head> <body> <center> <h2>Solusi Persamaan Linear</h2> <?php if ($_POST['langkah2']) { $n = $_POST['n']; for ($l=1; $l<=$n; $l++) { for ($c=1; $c<=($n+1); $c++) { $inp = "a$l$c"; $a[$l][$c]= $_POST[$inp]; } } for ($k=1; $k<$n; $k++) { if ($a[$k][$k] != 0) { $akk = $a[$k][$k]; for ($j=($k+1); $j<=($n+1); $j++) { $a[$k][$j] = $a[$k][$j]/$akk; for ($i=($k+1); $i<=$n; $i++) { $a[$i][$j] = $a[$i][$j] - ($a[$i][$k] * $a[$k][$j]); } } } } if ($a[$n][$n] != 0) { $x[$n] = ($a[$n][$n+1])/$a[$n][$n]; } else { $x[$n] = 0; } for ($k=($n-1); $k>=1; $k--) { $x[$k] = $a[$k][$n+1]; for ($j=($k+1); $j<=$n; $j++) { $x[$k] = $x[$k] - ($a[$k][$j] * $x[$j]); } } echo "Solusi untuk persamaan linear tersebut adalah:"; echo "<br />"; for ($z=1; $z <= $n; $z++) { echo "X<sub>$z</sub> = ". $x[$z] . "<br />"; } echo "<br />Klik <a href="index.php">disini</a> untuk kembali."; } else if ($_POST['langkah1']) { $n = $_POST['n']; if ($n>0) { echo "<form action="index.php" method="post">"; for ($l=1; $l<=$n; $l++) { for ($c=1; $c<=($n+1); $c++) { echo "<input type="text" size="2" name="a$l$c" />n"; if ($c<=$n) echo "X<sub>$c</sub>"; if ($c<$n) echo " + "; if ($c==$n) echo " = "; } echo "<br />n"; } echo "<input type="hidden" name="n" value="$n" /> <input type="submit" value="Hitung" name="langkah2" /> </form>"; echo "<br />Klik <a href="index.php">disini</a> untuk kembali."; } else { echo "Nilai n harus bilangan asli. Klik <a href="index.php">disini</a> untuk kembali."; } } else { ?> <img src="persamaan.jpg" alt="Persamaan Linear" border="0"><br /><br /> <form action="index.php" method="post"> <strong>Masukkan nilai n<br />n = </strong><input type="text" size="2" name="n"> <input type="submit" value="Lanjut" name="langkah1"> </form> <?php } ?> </center> </body> </html> [Last edited by ZeDs on Thu, 26 Jun 08 15:01, edited 2 times in total]
ZeDs
|
| Offline | Send Message Email Homepage Report Quote |
|
Neo Junior Member ![]()
|
Wew puyenk amat liat scriptna mas... Ajarin bikin session ma set cookies dunk mas..
|
| Offline | Send Message Email Homepage Report Quote |
-
This topic viewed 4556 times and has 12 post.
You cannot post new topic
You cannot post new reply
You cannot edit your posts
You cannot delete your posts
You cannot post attachments
-
12>»
Post Reply






