Visualizzazione dei risultati da 1 a 4 su 4

Discussione: delete

  1. #1

    delete

    Puo funzionare cosi?

    $comandosql2 ="delete from " . $tabarchivio_giornalista ." where data=$data and luogo=$luogo and titoto=$titolo and sottotitolo=$sottotitolo and autore=$autore and foto=$foto and account=$account ";
    mysql_query($comandosql2,$link) or die
    ("Impossibile cancellare il cliente2. Query: ".$comandosql2."
    Errore: ".mysql_error());
    mysql_close($link);
    Kalton
    -------------------
    www.kalton.it - www.kalton.cavarzere.it

  2. #2
    Utente di HTML.it L'avatar di _kime_
    Registrato dal
    Sep 2003
    Messaggi
    311
    penso vada cosi prova
    Codice PHP:
    $comandosql2 ="delete * from " $tabarchivio_giornalista ." where data=".$data." and luogo=".$luogo." and titoto=".$titolo." and sottotitolo=".$sottotitolo." and autore=".$autore." and foto=".$foto." and account=".$account." "
    mysql_query($comandosql2,$link) or die 
    (
    "Impossibile cancellare il cliente2. Query: ".$comandosql2.
    Errore: "
    .mysql_error()); 
    mysql_close($link); 
    + / Powered by Ubuntu 4.10 "The Warty Warthog"

    + / Manuale PHP.net

    + / Think Free

  3. #3
    Utente di HTML.it
    Registrato dal
    Apr 2003
    Messaggi
    534
    codice:
    $comandosql2 ="delete from " . $tabarchivio_giornalista ."
    where data='$data' and luogo='$luogo' and titoto='$titolo'
    and sottotitolo='$sottotitolo' and autore='$autore' and foto='$foto' and account='$account' ";
    mysql_query($comandosql2,$link) or die 
    ("Impossibile cancellare il cliente2. Query: ".$comandosql2." 
    Errore: ".mysql_error()); 
    mysql_close($link);
    non esiste DELETE * ....


  4. #4
    Utente di HTML.it L'avatar di badaze
    Registrato dal
    Jun 2002
    residenza
    Lyon
    Messaggi
    5,372
    prova con le apice....

    $comandosql2 ="delete from " . $tabarchivio_giornalista ." where data='$data' and luogo='$luogo' and titoto='$titolo' and sottotitolo='$sottotitolo' and autore='$autore' and foto='$foto' and account='$account' ";

    comunque occhio agli apici all'interno delle variabili.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.