Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ajan83

    (@ajan83)

    SOLVE:

    <?php
    header("Content-Type: text/html; charset=Windows-1254");
    $mysqli = new mysqli("***","***","***");
    $mysqli->select_db("***");
    $mysqli->set_charset("latin5");
    $plaka = $_POST['plaka'];
    $plaka = str_replace(" ", "", $plaka);
    $plaka = mb_convert_encoding($plaka, "ISO-8859-9", "UTF-8");
    $sifre = $_POST['sifre'];
    $sifre = str_replace(" ", "", $sifre);
    $sifre = mb_convert_encoding($sifre, "ISO-8859-9", "UTF-8");
    if ($sifre == "***"){
    $query = "SELECT * FROM Sayfa1 WHERE PLAKA LIKE '$plaka'";
    }else{
    $query = "SELECT * FROM Sayfa1 WHERE PLAKA LIKE '$plaka' AND KAYIT LIKE '$sifre'";
    }
    $result = $mysqli->query($query);
    $veri = 0;
    while ($r = $result->fetch_assoc())
    {    
    Thread Starter ajan83

    (@ajan83)

    i replace $ to jQuery

    after error :

    script1.js:2 Uncaught TypeError: $ is not a function
    at HTMLInputElement. (script1.js:2:24)
    at HTMLInputElement.dispatch (jquery.min.js?ver=3.6.4:2:43184)
    at y.handle (jquery.min.js?ver=3.6.4:2:41168)

    Thread Starter ajan83

    (@ajan83)

    The following error appears in the browser console

    Uncaught TypeError: $ is not a function
    at script1.js:1:2

    wordpress page code:

    <html><title>bla bla</title><label>Plaka:</label>
    <input id="plaka" style="width: 130px; height: 35px;" name="plaka" size="12" type="text" placeholder="Plaka Giriniz." />
    <label>?ifre:</label>
    <input id="sifre" style="width: 130px; height: 35px;" name="sifre" size="12" type="password" placeholder="?ifre Giriniz." />
    <input id="gonder" style="width: 130px; height: 35px;" name="submit" type="submit" value="DOSYA ARA" />
    <span id="sonuc"></span>
    [contact-form-7 id="385" title="Soru Sor"]
    <script src="https://code.jquery.com/jquery.js"></script>
    <script type="text/javascript" src="script1.js" defer></script>
    </body>
    </html>
    
Viewing 3 replies - 1 through 3 (of 3 total)