Android Question mysql remote delete

Discussion in 'Android Questions' started by Kahapdos, Feb 19, 2015.

  1. Kahapdos

    Kahapdos Member Licensed User

    Hi srs
    Connection php file is the one who put in their tutorial Erel

    This code works, insert, select very good no problem

    Query="SELECT Nombre,Tiempo FROM Brain ORDER BY Tiempo ASC"
    req.InitializePost2("http://kahapdos.com/mapas.php", Query.GetBytes("UTF8"))
    hc.Execute(req, 1)

    but this code does not work, no delete and no update

    Query="DELETE FROM Brain WHERE Nombre=wolf4"
    req.InitializePost2("http://kahapdos.com/mapas.php", Query.GetBytes("UTF8"))
    hc.Execute(req, 1)

    the difference is only the sql statement.
    could you help please.?

    It is the only thing to complete my project
     
  2. NJDude

    NJDude Expert Licensed User

    You need to add quotes:
    Code:
    Query="DELETE FROM Brain WHERE Nombre='wolf4'"
     
  3. Kahapdos

    Kahapdos Member Licensed User

    :eek:ohhhhhhhh thank you very much. sr thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice