PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mysql_client_encoding> <mysql_affected_rows
Last updated: Fri, 18 Jul 2008

view this page in

mysql_change_user

(No version information available, might be only in CVS)

mysql_change_user — Cambia l'utente della connessione attiva

Descrizione

int mysql_change_user ( string $nome_utente , string $password [, string $ database [, resource $ identificativo_connessione ]] )

mysql_change_user() cambia l'utente dell'attuale connessione attiva o della connessione specificata dal parametro opzionale identificativo_connessione . Se un database is specificato, questo sarà il database corrente dopo che l'utente è stato cambiato. Se l'autorizzazione del nuovo utente e password falllisce, l'attuale utente connesso rimane attivo. Restituisce TRUE in caso di successo, FALSE in caso di fallimento.

Nota: Questa funzione è stata introdotta nel PHP 3.0.13 e richiede MySQL 3.23.3 o successivo. Non è disponibile nel PHP 4.



add a note add a note User Contributed Notes
mysql_change_user
what at the dot hell
10-Sep-2008 05:48
Why did they remove this function? This is useful! I'm all over the place with databases and users. Some users can only insert, others only delete - this would be the easiest way and -- they removed it. I'm calling shenanigans on PHP!

mysql_client_encoding> <mysql_affected_rows
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites