i have been building a site on my mac with xampp. now that i have uploaded it to my host, i am getting the following errors where i am santising data for entry into the database:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'vu2049'@'localhost' (using password: NO) in /var/www/virtual/domain.com/htdocs/logcall.php on line 7
the code that is causing the error is:
$contactname = $_POST['contact'];
$contactname = mysql_real_escape_string($contactname);
i have tried to run a phpinfo() on the host but it seems to be disabled by them, how else can i see which version of php they are using?
is this likely to be a sitting in the conf file?