Jump to content
  • 0

Problema Panel .


George.

Question

Ce vrei sa faci: Am un panel b****d si nu pot sa ii fac conexiunea 

 

Ce ai incercat sa faci: Am incercat sa ii fac conexiunea dar nu reusesc 
Poze pentru a intelege despre ce este vorba
<?php

$link = @mysql_connect('Ip mysql', 'nume database', 'parola mysql') or die("Nu se poate efectua conexiunea MYSQL");
mysql_select_db('nume databes', $link);
 
$dbh = new PDO('mysql:host=ip;dbname=id database;charset=utf8', 'parola', 'parola');
 
 
?>
Altele:Eu am completat decat pana aici <?php
$link = @mysql_connect('Ip mysql', 'nume database', 'parola mysql') or die("Nu se poate efectua conexiunea MYSQL");
mysql_select_db('nume databes', $link); De aici nu mai stiu si imi tot spune ca nu am facut conexiunea bine

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Trebuie sa completezi si 

$dbh = new PDO('mysql:host=ip;dbname=id database;charset=utf8', 'parola', 'parola');

cu datele necesare deoarece mai mult ca sigur panel-ul foloseste conexiune PDO ca sa fie compatibil cu orice versiune de PHP si daca nu l-ai completat nu o sa iti functioneze.

Gh38gEQ.gif

Link to comment
Share on other sites

  • 0
1 hour ago, ImpulsE said:

Trebuie sa completezi si 


$dbh = new PDO('mysql:host=ip;dbname=id database;charset=utf8', 'parola', 'parola');

cu datele necesare deoarece mai mult ca sigur panel-ul foloseste conexiune PDO ca sa fie compatibil cu orice versiune de PHP si daca nu l-ai completat nu o sa iti functioneze.

Tot nu merge ...

Link to comment
Share on other sites

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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.