Search results

  1. F

    How to connect my php script to database?

    // Database connection info $host = 'localhost'; $port = 3306; $database = 'hawksvk_mydb001'; $username = 'hawksvk_usr001'; $password = 'mypassword'; // Construct the DSN $dsn = "mysql:host=$host;port=$port;dbname=$database"; // Create the connection $db = new PDO($dsn, $username...
  2. F

    How to connect my php script to database?

    I have made all. Now it is this same. :( Warning: mysql_connect() [function.mysql-connect]: Access denied for user ' hawksvk_usr001'@'web7.vital.x10hosting.com' (using password: YES) in /home/hawksvk/public_html/aaa.php on line 8
  3. F

    How to connect my php script to database?

    Is something more, what I have to set?
  4. F

    How to connect my php script to database?

    http://flash-engine.pcriot.com/aaa.php Can I use Mysql database, if I have only freehosting here?
  5. F

    How to connect my php script to database?

    mysql_connect("$host", "$username", "$password")or die("cannot connect to server"); //this is line 11, password is good
  6. F

    How to connect my php script to database?

    Hi, I am here new and I don't know what I have to do. I have read somethings in forum, but I didn't find. I have created database, mysql user, added user to database and I gave all permission to user. my php script: $host="localhost"; // Host name $username="hawksvk_fe"; // Mysql...
Top