Selasa, 20 Agustus 2013

PHP Indonesia - Facebook: [HELP]

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/ 
Learning HTML & CSS shouldn't be difficult.

Master Trainer, Mark Lassoff, will teach you everything you need to know to create a creative and professional web site in 4 hours.
From our sponsors
[HELP] bisa ga ya code ini:
  • Aug 20th 2013, 16:12, by Dava Dark

    Dava Dark 4:12pm Aug 20
    [HELP]
    bisa ga ya code ini:

    <li><span><span><a href="index.php">Homepage</a></span></span></li>
    <li><span><span><a href="inputdata.php">Input data</a></span></span></li>
    <li class="active"><span><span>Settings</span></span></li>

    saya jadiin pake php jadinya ini:

    <?
    while ($r = mysql_fetch_array($menu))
    {
    echo "<li><span><span><a href='$r[link]'>$r[nama_menu]</a></span></span></li>";
    }
    ?>

    trus di code php ingin saya buat jika seting saya klik maka dia dpet class="active"

    Gunawan Mujur Wibisono 4:51pm Aug 20
    itu pake if then else lho

    Dava Dark 4:53pm Aug 20
    jadinya gymana ga tau nih buntu

    Gunawan Mujur Wibisono 4:58pm Aug 20
    check file yg lagi aktif.. kl sesuai dgn alamat.. masukkan class tsb

    Dava Dark 4:59pm Aug 20
    pake while ga?

    Gunawan Mujur Wibisono 5:00pm Aug 20
    enggak..

    Dava Dark 5:02pm Aug 20
    check file yg lg aktif thu dari link apa dari bilangan 0 dan 1?

    Agus Setiawan 5:02pm Aug 20
    Contoh saja dari saya. $active[$file] = "class=\"active\""; Lalu saat echo ubah menjadi "<li ".$active[$r['link']].">

    Gunawan Mujur Wibisono 5:03pm Aug 20
    coba ketik
    print_r($_SERVER); apa yg km dapat.. ada ngak array yg sesuai kebutuhanmu

    Dava Dark 5:04pm Aug 20
    print r nya letakin di mana ?

    Gunawan Mujur Wibisono 5:04pm Aug 20
    sebelum menu

    Dava Dark 5:06pm Aug 20
    Array ( [HTTP_HOST] => localhost [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5 [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_REFERER] => http://localhost/skripsi1/ [HTTP_CONNECTION] => keep-alive [PATH] => C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth Software\syswow64;;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\java\jdk1.7.0_21\bin\; [SystemRoot] => C:\Windows [COMSPEC] => C:\Windows\system32\cmd.exe [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC [WINDIR] => C:\Windows [SERVER_SIGNATURE] =>
    Apache/2.2.8 (Win32) PHP/5.2.6 Server at localhost Port 80
    [SERVER_SOFTWARE] => Apache/2.2.8 (Win32) PHP/5.2.6 [SERVER_NAME] => localhost [SERVER_ADDR] => 127.0.0.1 [SERVER_PORT] => 80 [REMOTE_ADDR] => 127.0.0.1 [DOCUMENT_ROOT] => C:/AppServ/www [SERVER_ADMIN] => mask.joker.bad@gmail.com [SCRIPT_FILENAME] => C:/AppServ/www/skripsi1/admin/index.php [REMOTE_PORT] => 56616 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => [REQUEST_URI] => /skripsi1/admin/ [SCRIPT_NAME] => /skripsi1/admin/index.php [PHP_SELF] => /skripsi1/admin/index.php [REQUEST_TIME] => 1377018318 [argv] => Array ( ) [argc] => 0 )

    dapetnya thu ga tau bacanya

    Dava Dark 5:08pm Aug 20
    kak agus $active[$file] itu fungsi apa ? maksunya gimana blum pernah tau

  • 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