lolmedia
Member
- Messages
- 32
- Reaction score
- 0
- Points
- 6
Hi,
I can't connect to my database from my website :
this is my connection script :
thank for help !
I can't connect to my database from my website :
this is my connection script :
PHP:
<?php
$server="localhost";
$bdd="********";
$user="******@localhost"; /* or localhost ?*/
$password="********"; /* should I use a encrypt function ? if yes, what encrypt function ? I think that phpmyadmin is not using md5 lol , to easy to hack ...*/
$connexion=mysql_pconnect($server, $user);
if(!$connexion){
echo "pas de connexion" ; exit; /*traduction : no connection */
}
if(!mysql_select_db($bdd, $connexion)){
echo "pas d'accès à la base"; exit; /*cannot acces database*/
}
?>
thank for help !