Senin, 11 November 2013

PHP Indonesia - Facebook: [ASK] langsung saja. Warning: Cannot modify header...

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/ 
Earn an MBA degree

Advance your career with an MBA Only $325 per credit hour
From our sponsors
[ASK] langsung saja. Warning: Cannot modify header...
Nov 11th 2013, 10:54, by Alfan Zain

Alfan Zain 10:54am Nov 11
[ASK] langsung saja.
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\WebsiteSaya\index.php:126) in C:\xampp\htdocs\WebsiteSaya\conf\lib.php on line 9

dengan code php 'biang keroknya'

<?php
$qlist_k=mq("select * from kategori order by nama_kategori asc");
while($wlist_k=mfa($qlist_k)){
?>
<li><a href="$wlist_k[1]"></a></li>
<?php
}
?>

disaat saya hilangkan hrefnya, pesan warning tersebut hilang.
codenya jadi begini ..

<?php
$qlist_k=mq("select * from kategori order by nama_kategori asc");
while($wlist_k=mfa($qlist_k)){
?>
<li><a></a></li>
<?php
}
?>

Mohon bantuannya

Alfan Zain 10:54am Nov 11
mq adalah function mysql_query.
mfa adalah function mysql_fetch_array.

الفين شفوطر 10:57am Nov 11
?>
<li><a href="$wlist_k[1]"></a></li>
<?php

ini variable $wlist_k[1] kok ga didalem <?php ?> bisa?

Miggy Satria 11:39am Nov 11
pesan error seperti ini sudah sering dibahas. Coba letakkan script ini di paling atas index.php kamu <?php ob_start(); ?>

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