Results 1 to 14 of 14

Thread: nak tarik database??

  1. #1
    Join Date
    Sep 2007
    Location
    kuching
    Posts
    10
    Rep Power
    0

    nak tarik database??

    hi and salam....
    sy org baru kat cni.. nk mta tlg ckit..
    skang ni tgh wt final pojek.. ade sper2 leh bgtau camner nk tarik databse kalo kita wat camnii...

    cth interface:
    LIST: A | B | C

    [kat cni kuar list bla kta klik kt 'A']

    maksud nyer A tu adalah senarai nama yg mula ngn huruf A

    pliz tlgggg.....

  2. #2
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    oh..ya...pliz tlg olg pam slan u du... pam X apa i tlis???

    sakit kepala i tengok semua post guna bahasa sms... langsung tak faham sikit pun.... nak minta tolong tu memang dialu-alukan... tapi tolong orang lain faham apa u taip dulu. bukan semua orang tau baca bahasa u tu mak oii... pammm???
    Last edited by iamfreelancer; 08-09-2007 at 02:46 AM.

  3. #3
    Join Date
    Jul 2006
    Location
    My
    Posts
    967
    Rep Power
    0
    susah sangat ker nak taip betul betul. mana pergi ilmu bahasa yang ko belajar selama ni?

  4. #4
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    em.. maybe i should start answer them back in sms language ....

    yalar maybe they know my answer below:-
    dlm ls ABC tu, gn ahref lnk dg http get tau post..
    kat fom u.. bac var di http an spn dam lcal var
    kmdin gn SQL flte stman utk flte na yg ko nk..
    pam????

  5. #5
    Join Date
    Sep 2007
    Location
    kuching
    Posts
    10
    Rep Power
    0

    sory...

    oke2 im sory...
    sebenarnya gini... cam ner nak terangkan ek???
    saya nak tarik database....

    bila saya klik kat huruf 'A' tu senarai nama yg bemula dengan huruf A dipaparkan kat dalam kotak tu....dan seterusnya...

    contoh ini interface saya kan..

    _______________________________________
    List: A | B | C | D

    __________________
    | |
    | -senarai nama-
    |__________________|


    cam ner ekk...

  6. #6
    Join Date
    Mar 2006
    Location
    Kelantan
    Posts
    7
    Rep Power
    0

    Post Test Cara Ni

    1 Javascript DHTML DropDown Menu
    1 File PHP

    Buka DB Connection
    Query DB Connection

    <div class="Dropdown Style"><?php $row[menu] ?></div>
    http://www.eonline.com.my
    Indah Multimedia Education Portal (IMEP)

  7. #7
    Join Date
    Apr 2007
    Location
    PJ
    Posts
    16
    Rep Power
    0

    try this..

    ko kene buat 2 file php.1st ko add code bawh nie;

    <script>
    function popup(winURL){
    window.open(winURL, "", width ="500" );
    }
    </script>
    <a href="" onClick="popup('list.php?id=<? echo $id = "a" ?>')">A</a>|
    <a href="" onClick="popup('list.php?id=<? echo $id = "b" ?>')">B</a>|
    <a href="" onClick="popup('list.php?id=<? echo $id = "c" ?>')">C</a>

    2nd file ko add code nie;save ngan nama list;

    <?php
    //ko isi la ko nyer user name pass etc..
    $user = "user";
    $pass = "password";
    $db ="database name";
    $tablename ="table name ";

    $con = mysql_connect("localhost",$user,$pass);
    if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }

    mysql_select_db($db, $con);

    $id = $_GET['id'];

    $result = mysql_query("SELECT * FROM $tablename WHERE name LIKE '$id%'");

    echo "<table border='1'>
    <tr>
    <th>name</th>
    <th>list</th>
    </tr>";

    //herm name ngan list tu Field..ko ubah la ikut field ko.
    while($row = mysql_fetch_assoc($result))
    {
    echo "<tr>";
    echo "<td>" . $row['name'] . "</td>";
    echo "<td>" . $row['list'] . "</td>";
    echo "</tr>";
    }
    echo "</table>";

    mysql_close($con);

    ?>

    Smoga berjaya..
    castlevaneaŽ
    Wont Let U Down

  8. #8
    Join Date
    Sep 2007
    Location
    kuching
    Posts
    10
    Rep Power
    0

    thankss

    thanx..castlevanea..
    u dah settlekan masalah i...
    thanx banyakkk kkk...

  9. #9
    Join Date
    Sep 2007
    Location
    kuching
    Posts
    10
    Rep Power
    0

    thanx

    Quote Originally Posted by eryfarouk View Post
    1 Javascript DHTML DropDown Menu
    1 File PHP

    Buka DB Connection
    Query DB Connection

    <div class="Dropdown Style"><?php $row[menu] ?></div>
    ac2ally tak paham sangat...
    but thanx coz sudi bantu..

  10. #10
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    cuba tengok jawapan yang diberikan oleh castlevanea ... jawapanya sungguh jelas sekali..

    kalau macam tu pun tak faham... i rasa takda orang lain boleh tolong anda lagi..

  11. #11
    Join Date
    Aug 2007
    Location
    under the bridge
    Posts
    39
    Rep Power
    0
    gunakanlah bahasa baku.

    seandainya orang malaysia, singapura (b.melayu masih lagi bahasa kebangsaan mereka), brunei, sulu, patani dan indonesia menggunakan bahasa melayu baku, bangsa barat akan dengan sendirinya menguatkan sokongan bahasa melayu dalam aplikasi web mereka.

    rasa sukar mencari tutorial atau dokumentasi dalam bahasa melayu?

    salahkan diri sendiri kalau selalu guna bahasa SMS.

    jangankan mat salleh nak sokong bahasa melayu, orang indonesia pun takkan baca content kau dik oi... mereka pun pening.

  12. #12
    Join Date
    Sep 2007
    Location
    kuching
    Posts
    10
    Rep Power
    0

    baik....

    baiklah senior-senior ku dalam webmaster.... saya masih baru lagi dalam ni jadi saya tak tahu peraturan guna bahasa malaysia baku dalam forum ni.....

    kepada imfreelancer...
    awak macam mak saya la, suka membebel hehehe.... maafkanlah adik awak ni.... ingatkan forum ni untuk php and mysql tapi dah jadi macam forum bahasa pulak....

  13. #13
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    272

  14. #14
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    Quote Originally Posted by Linn_jie View Post
    kepada imfreelancer...
    awak macam mak saya la, suka membebel hehehe....
    ops... status i sudah auto upgrade jadi mak pulak...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Teh tarik, anyone?
    By aprilmoon68 in forum Mamak Stall
    Replies: 1
    Last Post: 28-08-2009, 03:34 PM
  2. nk ty pasal database..
    By annuR in forum Website Programming
    Replies: 9
    Last Post: 16-03-2007, 09:10 AM
  3. ASP & Topspeed database
    By Rizalnet in forum Website Programming
    Replies: 1
    Last Post: 07-08-2004, 07:24 PM
  4. Teh Tarik!!...
    By fadlee in forum Mamak Stall
    Replies: 15
    Last Post: 20-12-2003, 04:38 PM
  5. OOP dan Database
    By kidino in forum Website Programming
    Replies: 0
    Last Post: 07-10-2002, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37