Search results

  1. S

    Please help me on mysql_connect

    i thank all those who helped me here. thanks for the replies. i finally figured out the error. i am using different user name because of the variable. i was using $dbUsername which should be $dbUserName. I was so accustomed in developing websites using asp plus vbscript and variable cases there...
  2. S

    Please help me on mysql_connect

    <?php $dbUserName = "sirsam_sirSam"; $dbPassword = "password removed!!"; $dbName = "sirsam_dbSirSam"; mysql_connect("LocalHost", $dbUsername, $dbPassword);// or die("Could not connect: " .mysql_error()); //mysql_select_db($dbName)or die(mysql_error()); echo "db connected, rs connected"; ?>
  3. S

    Please help me on mysql_connect

    i still get this error Access denied for user 'sirsam_sirSam'@'localhost' (using password: YES) :( here is my code: mysql_connect("LocalHost", $dbUsername, $dbPassword) or die(mysql_error());
  4. S

    Please help me on mysql_connect

    i've read your post martin, i already did those. may i just ask, if my database is db1 and username is hello, in the function mysql_connect, should the database name parameter be "hello_db1"? or just "db1"? Edit: haha yeah. they're here, and... they look really so pro :) i know the solution is...
  5. S

    Please help me on mysql_connect

    thanks anyway Silmaril. i was so hopeless when i was waiting so your reply is already a help :)
  6. S

    Please help me on mysql_connect

    i have already created the user for the database and set all the privileges
  7. S

    Please help me on mysql_connect

    i am getting a new error here: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'sirSam'@'localhost' (using password: YES) in... Access denied for user 'sirSam'@'localhost' (using password: YES) Edit: hi leafypiggy... i think i have not done that yet.. can you guide me pls?
  8. S

    Please help me on mysql_connect

    hello Silmaril, thanks so much for your reply. i already made the database using the phpMyAdmin tool from cPanel. did i create it the wrong way? should I have used the wizard? thanks again..
  9. S

    Please help me on mysql_connect

    hello guys, im a newbie in php. i have a line of code like the following mysql_connect("localhost",... i uploaded my page using my account under elementfx server. my problem is this: Unknown MySQL server host 'Starka.x10 ' i think i should change the "localhost" to an IP address, or should...
Top