Senin, 05 Agustus 2013

PHP Indonesia - Facebook: agan2 tolong yah.. error header nya.. if(!empty($i...

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. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
agan2 tolong yah.. error header nya.. if(!empty($i...
Aug 5th 2013, 19:34, by Jevry Aj Putra

Jevry Aj Putra 7:34pm Aug 5
agan2 tolong yah..
error header nya..
if(!empty($id)){
//update
edit($id, $id, $nama, $sex);
header('Location:tampil.php');
die();
}else{
//insert
input($id, $nama, $sex);
header('Location: tampil.php');
die();
}

Fikri Handa Herriansyah 7:35pm Aug 5
edit input itu function ?

Jevry Aj Putra 7:36pm Aug 5
iya

Ryan Dmtry 7:36pm Aug 5
cb search di gugle om penggunaan ob_start()

Gembel Berkelas 7:37pm Aug 5
Paling gara2
output already sent blablabla

Jevry Aj Putra 7:38pm Aug 5
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\input\index.php:8) in C:\xampp\htdocs\input\index.php on line 71

Gembel Berkelas 7:39pm Aug 5
pakek ob_start()

Atau jangan ada output apapun sbelum header()

Muhammad Lutfi Utama Putra 7:40pm Aug 5
session nya bentrok

Ryan Dmtry 7:51pm Aug 5
saran :
pasang ob_start() di satu file yg sering di include dan terkait dengan header tsb.. File yg paling cocok adalah koneksi..
dan peletakan setelah tag <?php jangan di enter, tp di buat satu baris ==> <?php ob_start(); // baru enter

begitu pula ketika includenya
<?php include('koneksi.php'); ?>

Jevry Aj Putra 8:02pm Aug 5
selesay

Jevry Aj Putra 8:02pm Aug 5
makasih semuanya

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