Jump to content
Fórum Script Brasil
  • 0

Erro De Conexão


papawhysk

Question

Pessoal, estou com esse erro:

Fatal error: Call to undefined function mysql_connect() in d:\htdocs\conecta.php on line 2

CODIGO do arquivo CONECTA.PHP:

$link_id = mysql_connect("localhost", "root", "senha") or die("ERRO");

$db_selected = mysql_select_db("database", $link_id);

if (!$db_selected) {die ('ERRO: ' . mysql_error());}

O problema é que não estou conseguindo resolver, já li o manual a respeito, mas nada de resolver. Estou achando que seja na configuração. Estou usando o Apache 1.33, PHP5 e o MySQL.

alguém sabe como dar uma força ???

Valeu desde já !!!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152k
    • Total Posts
      651.6k
×
×
  • Create New...