Results 1 to 9 of 9

Thread: tolong laaa..........

  1. #1
    Join Date
    Feb 2004
    Location
    Klang Bandar Diraja
    Posts
    160
    Rep Power
    193

    tolong laaa..........

    //-------------------------------------------------------------------------------
    // file name : find.parse.php
    <?php
    include 'Connections/star.php';
    session_start();

    if(!$_POST)
    {
    echo "Anda perlu memasukkan kata kunci bagi pencarian anda";
    echo "<META HTTP-EQUIV='REFRESH' CONTENT ='0; URL = find.members.php'>";

    }
    else
    {
    $key = $_POST['keyword'];
    $search_by = $_POST['search_by'];

    $result = mysql_query("SELECT * FROM user_mgt WHERE $search_by LIKE %$key%") or die('failed');

    }

    ?>
    //---------------------------------------------------end file find.parse.php

    huaarggghh... script ni tak jalan laaa.... dr post file tu rasanya tadek problem... sbb output dia kuar :
    failed

    then just help me plzzz.....!!!!!!!!!!

  2. #2
    Join Date
    Feb 2004
    Location
    Shah Alam
    Posts
    175
    Rep Power
    192
    try put double quote to wrap %$key%

    SELECT * FROM user_mgt WHERE $search_by LIKE "%$key%"

  3. #3
    Join Date
    Feb 2004
    Location
    Klang Bandar Diraja
    Posts
    160
    Rep Power
    193
    failed jugak...
    To follow the path:
    Look to the master,
    Follow the master,
    Walk with the master,
    See through the master,
    Become the master.

  4. #4
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    227
    Try:

    PHP Code:
    $result mysql_query("SELECT * FROM user_mgt WHERE $search_by LIKE '%" $key "%'") or die('failed'); 
    Edit: forgot the $
    Last edited by sufyan; 02-03-2004 at 12:16 PM.

  5. #5
    Join Date
    Feb 2004
    Location
    Klang Bandar Diraja
    Posts
    160
    Rep Power
    193
    TQ sufyan! everythin' is perfect!
    To follow the path:
    Look to the master,
    Follow the master,
    Walk with the master,
    See through the master,
    Become the master.

  6. #6
    Join Date
    Feb 2004
    Location
    Shah Alam
    Posts
    175
    Rep Power
    192
    he didn;t thank me i did help a tiny bit........

  7. #7
    Join Date
    Sep 2001
    Location
    epox
    Posts
    432
    Rep Power
    227
    hehe
    you poor slob
    Munzir + "/^[Hh](a)(z)\1\2[iI]$/"

  8. #8
    Join Date
    Feb 2004
    Location
    Klang Bandar Diraja
    Posts
    160
    Rep Power
    193
    TQ everybody... heheh...
    To follow the path:
    Look to the master,
    Follow the master,
    Walk with the master,
    See through the master,
    Become the master.

  9. #9
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    227
    No problems...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Tolong!Tolong!! Urgent giler nie...
    By Apit in forum Website Programming
    Replies: 4
    Last Post: 29-03-2008, 05:35 PM
  2. tolong lah ye...
    By nur_miesha in forum Other Webmaster-related Services and Promotion
    Replies: 0
    Last Post: 16-12-2003, 04:39 PM
  3. tolong....
    By fauseth82 in forum Website Programming
    Replies: 1
    Last Post: 04-12-2003, 03:32 PM
  4. aku nak tanyer laaa
    By AWAi in forum Mamak Stall
    Replies: 3
    Last Post: 28-06-2002, 11:37 PM
  5. aku nak tanyer laaa
    By AWAi in forum Mamak Stall
    Replies: 0
    Last Post: 20-06-2002, 06:16 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112