Results 1 to 13 of 13

Thread: [RESOLVED] More efficient way to change user connection

Threaded View

  1. #1

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Resolved [RESOLVED] More efficient way to change user connection

    Hi,

    What is a more efficient way to change user access to a database? At the moment I use:

    PHP Code:
    //connect to server or exit
    $conn = @mysql_connect("localhost""root""");
    if (!
    $conn) {
    die(
    "Connection failed: " .mysql_error());

    and just replace "root" with whatever the new user account is called. However, this means I have a lot of connections to my databases. What would be the best way to achieve this?
    Last edited by Nightwalker83; Dec 9th, 2009 at 12:08 PM. Reason: Fixing spelling
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width