• 01-11-2009, 21:32:04
    #1
    search.php
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" utf8_unicode_ci>
    <title>Dictionary Search</title>
    </head>
    <body>
    <form method="get" action="search_function.php">
    <fieldset>
    Search: <input type="text" name="search">
    <input type="submit" value="Search" >
    </fieldset>
    </form>
    </body>
    </html>
    search_function.php
    <?php
    $page = $_GET["page"];
    
    include("connect_function.php"); // Connect to DataBase
    $search = $_GET['search'];
    echo "$search = ";
    # Search Query
    $query = mysql_query("select bgwords.bg_word from bgwords inner join trwords on trwords.id=bgwords.id where trwords.tr_word like '$search'")
    # Write Operation
    while($read = mysql_fetch_array($query)){
    	echo $read[0];
    }
    ?>
    arama yaptığımda aldığım hata
    Parse error: syntax error, unexpected T_WHILE in C:\AppServ\www\alfa\search_function.php on line 10
    bir yerde problem var ama çözemedim
  • 01-11-2009, 21:40:06
    #2
    $query = mysql_query("select bgwords.bg_word from bgwords inner join trwords on trwords.id=bgwords.id where trwords.tr_word like '$search'")

    satırının sonunda ; yok
  • 01-11-2009, 21:41:28
    #3
    off sağol ÇÖZÜLDÜ konu silinebilir.