Kamis, 25 Juli 2013

PHP Indonesia - Facebook: input mysql_query("insert into pegawai (id,nama_le...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
input mysql_query("insert into pegawai (id,nama_le...
Jul 25th 2013, 16:59, by Leonal Pennant Alimighty

Leonal Pennant Alimighty 4:59pm Jul 25
input
mysql_query("insert into pegawai (id,nama_lengkap,agm,kelamin,gambar)
values (\"$_POST[textId]\",\"$_POST[textNamaPegawai]\",\"$_POST[textAgm]\",\"$_POST[rJenkel]\",\"$_POST[namafile]\")");
copy($namafile,foto_pegawai/\"$_POST[namafile_name]\");
edit
mysql_query("update pegawai set Id=\"$_POST[textNo]\",
nama_lengkap=\"$_POST[textNamaPegawai]\",agm=\"$_POST[textAgm]\",
kelamin=\"$_POST[rJenkel]\",
gambar=\"$_POST[namafile]\" where id=\"$_POST[textId]\"");
copy($namafile,foto_pegawai/\"$_POST[namafile_name]\");
tampil
<img src="foto_pegawai/<? echo "$data->gambar";?>"width="224" height="234" >
mas/mbak, mw tanyak ni saya cuman belajar masih awam????
kok saya input gambar pas saya brows kok gak tampil, bisa tampil kalaw ngimputnya di folder "foto_pegawai" gambarnya akan tampil tapi di lain folder itu gak sa tampil saya cari-cari di google dapet ini tapi juga gak isa"copy($namafile,foto_pegawai/\"$_POST[namafile_name]\");"

tlog pencrahanya

Mulia Nst 5:11pm Jul 25
Hmm... bingung liat code-nya @_@

Leonal Pennant Alimighty 5:17pm Jul 25
(input) mysql_query("insert into pegawai (id,nama_lengkap,agm,kelamin,gambar) values (\"$_POST[textNo]\",\"$_POST[textNamaPegawai]\",\"$_POST[textAgm]\",\"$_POST[rJenkel]\",\"$_POST[namafile]\")"); copy($namafile,foto_pegawai/\"$_POST[namafile_name]\");

Leonal Pennant Alimighty 5:18pm Jul 25
(edit) mysql_query("update pegawai set id=\"$_POST[textNo]\", nama_lengkap=\"$_POST[textNamaPegawai]\",agm=\"$_POST[textAgm]\", kelamin=\"$_POST[rJenkel]\", gambar=\"$_POST[namafile]\" where id=\"$_POST[textId]\""); copy($namafile,foto_pegawai/\"$_POST[namafile_name]\");

Ata Saxalorman 5:22pm Jul 25
Contoh punya saya gan .

//INSERT
<?php
require "config.php";

$judul = $_POST['judul'];

$gambar_lok = $_FILES['gambar']['tmp_name'];
$gambar = $_FILES['gambar']['name'];

$sinopsis = $_POST['sinopsis'];

$save = "../anime/$gambar";

if (!empty($gambar)) {
move_uploaded_file($gambar_lok,$save);
$query = mysql_query(" INSERT INTO anime VALUES('','$judul','$gambar','$sinopsis') ");
if ($query) { echo "<script>alert('Berhasil menambah data'); window.location.href='anime.php?sukses'</script>"; }
else { echo "<script>alert('Terjadi kesalahan'); window.location.href='anime.php?gagal'</script>"; }
}
?>

Priangga Emilsyah 5:35pm Jul 25
kodenya ngalahin situasi kamar ane wkwk

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar