php mysql_change_user function

mysql_change_user

php mysql_change_user function

<?php
$old_user = ‘username’;
$new_user = ‘newusername’;
$link = mysql_connect (‘hostname’,$old_user,’password’);

if (mysql_change_user ($old_user, $new_user)) {
echo “User changed to <b>$new_user</b>.”;
} else {
echo “User could not be changed to <b>$new_user</b>.”;
}
?>

Advertisements

1 Comment »

  1. Frank said

    I’vе been surfing onliᥱ morе than 3 houfs toɗay, yet I never found any interesting ɑrticle
    like yours. It iss pretyy worth enough for me. ӏn my viеw, if all site owneгѕ and bloggeгs made
    gooԀ content as you diԁ, the webb wiⅼl bee much
    more useful than ever Ƅefore.

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: