fomalhaut
Member
- Messages
- 107
- Reaction score
- 0
- Points
- 16
Hello
I've this message on x10hosting, that I havn't on my two personnal computers and I don't understand why!
It's just at the begining of my script :
This is the begining of index.php :
and that is the functions.php file :
following is the messages :
Or are authorizations not sufficiant for the user ? why not on my computers ?
Or does this function (i.e. mysql_real_escape_string()) not exist on x10hosting ? so which can I use instead of it ?
Thinks for your help.
I've this message on x10hosting, that I havn't on my two personnal computers and I don't understand why!
It's just at the begining of my script :
This is the begining of index.php :
PHP:
<?php session_start();
include ('functions.php');
?>
<html><head><title>Fomalhaut</title>
<SCRIPT language=JavaScript src="fomalhaut.js"></script>
<link rel=stylesheet href="Fomalhaut.css" type="text/css">
</head>
<body text="#999999" link="00cccc" bgcolor="#060f14">
<div class="bkflot"><img src="19970405_19h45_C1995_O1_HaleBopp_JYC76_1A.jpg" width="100%" /></div>
<div class="flot"><center>
<form action="index.php" method="post">
Identifiant :<br /><input type="text" name="utilisateur" id="utilisateur" /><br />
Mot de Passe :<br /><input type="password" name="upass" /><br />
<input type="submit" name="submit" id="submit" /><br />
<input type="submit" name="dcnx" value="déconnexion" id="dcnx" /><br />
<div id="TArea" ></div>
</form></center>
</div>
PHP:
<?php
// ce fichier est un include php
function safe($var) {
return mysql_real_escape_string($var);
}
?>
Does that mean I really must establish a connection with the database first ? but why not on my computers ?Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'user'@'chopin.x10hosting.com' (using password: NO) in /home/user/public_html/functions.php on line 4
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/user/public_html/functions.php on line 4
Or are authorizations not sufficiant for the user ? why not on my computers ?
Or does this function (i.e. mysql_real_escape_string()) not exist on x10hosting ? so which can I use instead of it ?
Thinks for your help.