SQL database connect with php?

i know you use this script to start with,

mysql_connect(servername,username,password);

but i wanna plug right into a table i created in phpadmin...

but

1 Answer

Relevance
  • tk2
    Lv 4
    1 decade ago
    Favorite Answer

    $dbh=mysql_connect ("localhost", "shinigami", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());

    mysql_select_db ("forum");

    table name:forum

    user:shinigami

    • Login to reply the answers
Still have questions? Get your answers by asking now.