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/ | |
 | Kinvey Strategy eBook
Kinvey answers 7 critical questions about creating your mobile strategy and technology policies. See our answers in this free eBook.  | From our sponsors | | |
Ask gan ini error dimana yahh Sep 25th 2013, 05:00, by Ahmad Mudhofir | Ask gan ini error dimana yahh |
| | Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\xampp\htdocs\SIA\media.php on line 34 |
| | liat codingnya gan.. |
| | <?php error_reporting(0); ob_start(); session_start(); include "config/koneksi.php"; ?> <title>SISTEM INFORMASI MAN Buntet Pesantren</title> <link rel="stylesheet" href="css/style.css" type="text/css" /> <script src="js/jquery-1.4.js" type="text/javascript"></script> <script src="js/superfish.js" type="text/javascript"></script> <script src="js/hoverIntent.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $('ul.nav').superfish(); }); </script> <style type="text/css"> </style> <body> <div id="tabel"><img src="img/header MAN.jpg"></div> <div id="tabelsystem"> <div id="top"> <ul class="nav"> <?php function get_menu($data, $parent = 0) { static $i = 1; $tab = str_repeat(" ", $i); if ($data[$parent]) { $html = "$tab<ul class='sf-menu'>"; $i++; foreach ($data[$parent] as $v) { $child = get_menu($data, $v->id); $html .= "$tab<li>"; $html .= '<a href="'.$v->url.'">'.$v->judul'</a>'; if ($child) { $i--; $html .= $child; $html .= "$tab"; } $html .= '</li>'; } $html .= "$tab</ul>"; return $html; } else { return false; } } $result = mysql_query("SELECT * FROM dropdownawal ORDER BY menu_order"); while ($row = mysql_fetch_object($result)) { $data[$row->parent_id][] = $row; } $menu = get_menu($data); echo "$menu"; ?> <li class="sep"></li> <li class="right"></li> </ul> </div></div> <?php include "kiri.php"; ?> <?php include "tengah.php"; ?> <div id=footer><center>Sistem Informasi MAN Buntet Pesantren</div> |
| | nih gan edit bagian ini:
$html .= '<a href="'.$v->url.'">'.$v->judul'</a>';
jadi kaya gini:
$html .= '<a href="'.$v->url.'">'.$v->judul.'</a>'; |
| | jiah baru mau ngopiin udah di jawab tuh =^ | | |
|
Tidak ada komentar:
Posting Komentar