"marco@xxxxxxxxxx" <marco@xxxxxxxxxx> wrote: > > > >Nick Edwards <nick.z.edwards@xxxxxxxxx> hat am 12. Juli 2012 um 14:00 >geschrieben: > >> On 7/12/12, Gibbs <linux@xxxxxxxxxxxxxxx> wrote: >> >> > mysql_query("DELETE from userprefs where clientr='$User'", >$connmy); > > >Sidenote: And don't forget to validate user input and make use of mysql >escape >and prepared statements ;) > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php Another way if the access credentials are the same would be to specify the full 'path' to the table in the query: DELETE FROM database.table WHERE clause Thanks, Ash http://ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php